Remove unused function; make it clearer that _json_format is not used in PHP 5.4 & later

This commit is contained in:
Paul Gear
2014-10-25 09:16:07 +10:00
parent 208ac0b104
commit b5136b444c

View File

@@ -967,17 +967,12 @@ if (!defined('JSON_UNESCAPED_UNICODE'))
function _json_encode($data, $options = 448)
{
if (version_compare(PHP_VERSION, '5.4', '>='))
{
if (version_compare(PHP_VERSION, '5.4', '>=')) {
return json_encode($data, $options);
}
return _json_format(json_encode($data), $options);
}
function _pretty_print_json($json)
{
return _json_format($json, JSON_PRETTY_PRINT);
else {
return _json_format(json_encode($data), $options);
}
}
function _json_format($json, $options = 448)