diff options
| author | khr@golang.org <khr@golang.org> | 2025-12-23 09:41:47 -0600 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2026-01-22 14:29:44 -0800 |
| commit | 26ffe78b8c34cea92a06690742b5d41b3397105f (patch) | |
| tree | 0bf44ea89b2d7c783c7105f49ad8fc57c0d632fe | |
| parent | e0c4ad77cf0f11687f72a361dff76713e5541b7f (diff) | |
| download | go-26ffe78b8c34cea92a06690742b5d41b3397105f.tar.xz | |
encoding/json: remove unneeded unsafe import
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>
| -rw-r--r-- | src/encoding/json/decode.go | 1 | ||||
| -rw-r--r-- | src/encoding/json/encode.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/encoding/json/decode.go b/src/encoding/json/decode.go index 5ff1014dc5..59d4c7e734 100644 --- a/src/encoding/json/decode.go +++ b/src/encoding/json/decode.go @@ -19,7 +19,6 @@ import ( "unicode" "unicode/utf16" "unicode/utf8" - _ "unsafe" // for linkname ) // Unmarshal parses the JSON-encoded data and stores the result diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go index 9bdc270f85..a898b48e31 100644 --- a/src/encoding/json/encode.go +++ b/src/encoding/json/encode.go @@ -58,7 +58,6 @@ import ( "sync" "unicode" "unicode/utf8" - _ "unsafe" // for linkname ) // Marshal returns the JSON encoding of v. |
