From 2d2e3ed6a14a2b101b41617165924234dde9434f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 2 Oct 2021 14:04:52 +0100 Subject: [PATCH] Remove dead code --- core/encoding/json/marshal.odin | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/encoding/json/marshal.odin b/core/encoding/json/marshal.odin index ef78c0a19..d2d908440 100644 --- a/core/encoding/json/marshal.odin +++ b/core/encoding/json/marshal.odin @@ -35,23 +35,6 @@ marshal_to_builder :: proc(b: ^strings.Builder, v: any) -> Marshal_Error { } marshal_to_writer :: proc(w: io.Writer, v: any) -> (err: Marshal_Error) { - write_f64 :: proc(w: io.Writer, val: f64, size: int) -> io.Error { - buf: [386]byte - - str := strconv.append_float(buf[1:], val, 'f', 2*size, 8*size) - s := buf[:len(str)+1] - if s[1] == '+' || s[1] == '-' { - s = s[1:] - } else { - s[0] = '+' - } - if s[0] == '+' { - s = s[1:] - } - - _ = io.write_string(w, string(s)) or_return - return nil - } if v == nil { io.write_string(w, "null") or_return return