mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
std.json: Remove unused error parameter to appendJSONChar
This commit is contained in:
parent
e59ce88531
commit
145f279b42
1 changed files with 3 additions and 5 deletions
|
@ -835,7 +835,7 @@ if (isInputRange!T && !isInfinite!T && isSomeChar!(ElementEncodingType!T))
|
||||||
|
|
||||||
default:
|
default:
|
||||||
auto c = getChar();
|
auto c = getChar();
|
||||||
appendJSONChar(str, c, options, &error);
|
appendJSONChar(str, c, options);
|
||||||
goto Next;
|
goto Next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1113,8 +1113,7 @@ string toJSON(const ref JSONValue root, in bool pretty = false, in JSONOptions o
|
||||||
case '\r': json.put("\\r"); break;
|
case '\r': json.put("\\r"); break;
|
||||||
case '\t': json.put("\\t"); break;
|
case '\t': json.put("\\t"); break;
|
||||||
default:
|
default:
|
||||||
appendJSONChar(json, c, options,
|
appendJSONChar(json, c, options);
|
||||||
(msg) { throw new JSONException(msg); });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1281,8 +1280,7 @@ string toJSON(const ref JSONValue root, in bool pretty = false, in JSONOptions o
|
||||||
return json.data;
|
return json.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void appendJSONChar(ref Appender!string dst, dchar c, JSONOptions opts,
|
private void appendJSONChar(ref Appender!string dst, dchar c, JSONOptions opts) @safe
|
||||||
scope void delegate(string) error) @safe
|
|
||||||
{
|
{
|
||||||
import std.uni : isControl;
|
import std.uni : isControl;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue