accounts: remove deadcode isSigned

This commit is contained in:
Delweng Zheng 2018-06-14 23:28:18 +08:00
parent c95e4a80d1
commit 5baa2bf61c

View file

@ -48,12 +48,3 @@ var (
func U256(n *big.Int) []byte {
return math.PaddedBigBytes(math.U256(n), 32)
}
// checks whether the given reflect value is signed. This also works for slices with a number type
func isSigned(v reflect.Value) bool {
switch v.Type() {
case intTS, int8TS, int16TS, int32TS, int64TS, intT, int8T, int16T, int32T, int64T:
return true
}
return false
}