Skip to content

Commit 2b1f4e6

Browse files
lint: remove unused consts/fields
The constants in particular could have been used, but do not seem that they'd improve readability: these aren't "magic" byte literals, because they're well and widely understood aspects of the JSON syntax.
1 parent 9cac083 commit 2b1f4e6

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

json/codec.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,6 @@ type structType struct {
995995
ficaseIndex map[string]*structField
996996
keyset []byte
997997
typ reflect.Type
998-
inlined bool
999998
}
1000999

10011000
type structField struct {

json/parse.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ const (
2121
cr = '\r'
2222
)
2323

24-
const (
25-
escape = '\\'
26-
quote = '"'
27-
)
28-
2924
func internalParseFlags(b []byte) (flags ParseFlags) {
3025
// Don't consider surrounding whitespace
3126
b = skipSpaces(b)

0 commit comments

Comments
 (0)