mirror of
https://github.com/json-iterator/go.git
synced 2024-11-24 08:22:14 +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 needCheckValues []uint8
|
||||
|
||||
var needCheckMasks []uint8
|
||||
|
||||
func init() {
|
||||
digits = make([]byte, 256)
|
||||
for i := 0; i < len(digits); i++ {
|
||||
@ -30,26 +25,6 @@ func init() {
|
||||
for i := 'A'; i <= 'F'; i++ {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user