1
0
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:
Tao Wen 2016-12-08 14:15:41 +08:00
parent 7e295ba1a5
commit 73f59cc98f

View File

@ -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 {