]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: remove unneeded unsafe import
authorkhr@golang.org <khr@golang.org>
Tue, 23 Dec 2025 15:41:47 +0000 (09:41 -0600)
committerKeith Randall <khr@golang.org>
Thu, 22 Jan 2026 22:29:44 +0000 (14:29 -0800)
Followon for CL 721160.

Change-Id: I9c22c5e99c9084e24047c77d20717c5b46165cde
Reviewed-on: https://go-review.googlesource.com/c/go/+/732220
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/encoding/json/decode.go
src/encoding/json/encode.go

index 5ff1014dc506444a01b1c256bccdf9234c96a247..59d4c7e73459c50a1b0b7ab275965e421f7be329 100644 (file)
@@ -19,7 +19,6 @@ import (
        "unicode"
        "unicode/utf16"
        "unicode/utf8"
-       _ "unsafe" // for linkname
 )
 
 // Unmarshal parses the JSON-encoded data and stores the result
index 9bdc270f85eda1bd8205ca6d9e52d5c6341fba85..a898b48e3153cccc3223e0ec0f0f04cdb425f2ef 100644 (file)
@@ -58,7 +58,6 @@ import (
        "sync"
        "unicode"
        "unicode/utf8"
-       _ "unsafe" // for linkname
 )
 
 // Marshal returns the JSON encoding of v.