mirror of
https://github.com/json-iterator/go.git
synced 2025-04-20 11:28:49 +02:00
remove unused code
This commit is contained in:
parent
7e295ba1a5
commit
73f59cc98f
25
jsoniter.go
25
jsoniter.go
@ -11,11 +11,6 @@ import (
|
|||||||
|
|
||||||
var digits []byte
|
var digits []byte
|
||||||
|
|
||||||
|
|
||||||
var needCheckValues []uint8
|
|
||||||
|
|
||||||
var needCheckMasks []uint8
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
digits = make([]byte, 256)
|
digits = make([]byte, 256)
|
||||||
for i := 0; i < len(digits); i++ {
|
for i := 0; i < len(digits); i++ {
|
||||||
@ -30,26 +25,6 @@ func init() {
|
|||||||
for i := 'A'; i <= 'F'; i++ {
|
for i := 'A'; i <= 'F'; i++ {
|
||||||
digits[i] = byte((i - 'A') + 10);
|
digits[i] = byte((i - 'A') + 10);
|
||||||
}
|
}
|
||||||
needCheckValues = []uint8{
|
|
||||||
uint8(0xff) >> 7,
|
|
||||||
uint8(0xff) >> 6,
|
|
||||||
uint8(0xff) >> 5,
|
|
||||||
uint8(0xff) >> 4,
|
|
||||||
uint8(0xff) >> 3,
|
|
||||||
uint8(0xff) >> 2,
|
|
||||||
uint8(0xff) >> 1,
|
|
||||||
uint8(0xff) >> 0,
|
|
||||||
}
|
|
||||||
needCheckMasks = []uint8{
|
|
||||||
uint8(1) << 0,
|
|
||||||
uint8(1) << 1,
|
|
||||||
uint8(1) << 2,
|
|
||||||
uint8(1) << 3,
|
|
||||||
uint8(1) << 4,
|
|
||||||
uint8(1) << 5,
|
|
||||||
uint8(1) << 6,
|
|
||||||
uint8(1) << 7,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Iterator struct {
|
type Iterator struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user