mirror of
https://github.com/wader/fq.git
synced 2024-11-26 21:55:57 +03:00
removes unused function
This commit is contained in:
parent
253033cc4c
commit
a351c346f6
@ -90,30 +90,6 @@ func decodeSize(d *decode.D, sms ...scalar.Mapper) uint64 {
|
||||
return n
|
||||
}
|
||||
|
||||
func decodeSizedInteger(d *decode.D, nBytes uint64, sms ...scalar.Mapper) (low uint64, high uint64) {
|
||||
switch nBytes {
|
||||
case 1:
|
||||
low, high = d.U8(), 0
|
||||
case 2:
|
||||
low, high = d.U16(), 0
|
||||
case 4:
|
||||
low, high = d.U32(), 0
|
||||
case 8:
|
||||
low = d.FieldU64("value")
|
||||
if low&0x8000000000000000 != 0 {
|
||||
high = 0xffffffffffffffff
|
||||
} else {
|
||||
high = 0
|
||||
}
|
||||
case 16:
|
||||
high, low = d.U64(), d.U64()
|
||||
default:
|
||||
d.Errorf("integer cannot be parsed from %d bytes", nBytes)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// decodeItem decodes an object from the plist, and assumes that the current
|
||||
// seek position of the *decode.D is an object type tag. Returns a bool
|
||||
// indicating whether or not a string was decoded, which is necssary for
|
||||
|
Loading…
Reference in New Issue
Block a user