1
0
mirror of https://github.com/nlohmann/json synced 2024-11-22 03:50:05 +00:00

🔥 remove pretty-print code for binary values

This commit is contained in:
Niels Lohmann 2020-05-06 22:13:08 +02:00
parent ddff459fa3
commit c10bc7efdd
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 0 additions and 42 deletions

View File

@ -251,27 +251,6 @@ class serializer
{
o->write_characters("b[]", 3);
}
else if (pretty_print)
{
o->write_characters("b[", 2);
for (auto i = val.m_value.binary->cbegin();
i != val.m_value.binary->cend() - 1; ++i)
{
dump_integer(*i);
o->write_character(',');
if (std::distance(val.m_value.binary->cbegin(), i) % 16 == 0)
{
o->write_character('\n');
}
else
{
o->write_character(' ');
}
}
dump_integer(val.m_value.binary->back());
o->write_character(']');
}
else
{
o->write_characters("b[", 2);

View File

@ -14905,27 +14905,6 @@ class serializer
{
o->write_characters("b[]", 3);
}
else if (pretty_print)
{
o->write_characters("b[", 2);
for (auto i = val.m_value.binary->cbegin();
i != val.m_value.binary->cend() - 1; ++i)
{
dump_integer(*i);
o->write_character(',');
if (std::distance(val.m_value.binary->cbegin(), i) % 16 == 0)
{
o->write_character('\n');
}
else
{
o->write_character(' ');
}
}
dump_integer(val.m_value.binary->back());
o->write_character(']');
}
else
{
o->write_characters("b[", 2);