removed redundant definitions which are also present in nim-json-serialization/json_serialization/std/net

This commit is contained in:
Viktor Kirilov 2020-04-23 18:30:08 +03:00
parent 8d207cec9b
commit 28e684ce80
1 changed files with 0 additions and 6 deletions

View File

@ -8,12 +8,6 @@ proc writeValue*(w: var JsonWriter, a: MDigest) {.inline.} =
proc readValue*(r: var JsonReader, a: var MDigest) {.inline.} = proc readValue*(r: var JsonReader, a: var MDigest) {.inline.} =
a = fromHex(type(a), r.readValue(string)) a = fromHex(type(a), r.readValue(string))
proc writeValue*(w: var JsonWriter, a: Port) {.inline.} =
w.writeValue uint16(a)
proc readValue*(r: var JsonReader, a: var Port) {.inline.} =
a = Port r.readValue(uint16)
proc writeValue*(w: var JsonWriter, value: StUint) {.inline.} = proc writeValue*(w: var JsonWriter, value: StUint) {.inline.} =
w.writeValue $value w.writeValue $value