rm TaintedString (#43)
This commit is contained in:
parent
3509706517
commit
7d3d339e73
|
@ -455,9 +455,6 @@ proc readValue*[T](r: var JsonReader, value: var T)
|
|||
value = r.lexer.strVal
|
||||
r.lexer.next()
|
||||
|
||||
elif value is TaintedString:
|
||||
value = TaintedString r.readValue(string)
|
||||
|
||||
elif value is seq[char]:
|
||||
r.requireToken tkString
|
||||
value.setLen(r.lexer.strVal.len)
|
||||
|
|
|
@ -192,9 +192,6 @@ proc writeValue*(w: var JsonWriter, value: auto) =
|
|||
|
||||
append '"'
|
||||
|
||||
elif value is TaintedString:
|
||||
writeValue(w, string value)
|
||||
|
||||
elif value is bool:
|
||||
append if value: "true" else: "false"
|
||||
|
||||
|
|
Loading…
Reference in New Issue