rm TaintedString (#43)

This commit is contained in:
tersec 2022-06-04 06:58:13 +00:00 committed by GitHub
parent 3509706517
commit 7d3d339e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -455,9 +455,6 @@ proc readValue*[T](r: var JsonReader, value: var T)
value = r.lexer.strVal value = r.lexer.strVal
r.lexer.next() r.lexer.next()
elif value is TaintedString:
value = TaintedString r.readValue(string)
elif value is seq[char]: elif value is seq[char]:
r.requireToken tkString r.requireToken tkString
value.setLen(r.lexer.strVal.len) value.setLen(r.lexer.strVal.len)

View File

@ -192,9 +192,6 @@ proc writeValue*(w: var JsonWriter, value: auto) =
append '"' append '"'
elif value is TaintedString:
writeValue(w, string value)
elif value is bool: elif value is bool:
append if value: "true" else: "false" append if value: "true" else: "false"