diff options
Diffstat (limited to 'common/bytes.go')
-rw-r--r-- | common/bytes.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/common/bytes.go b/common/bytes.go index 389ac0e4b..4fb016a97 100644 --- a/common/bytes.go +++ b/common/bytes.go @@ -48,22 +48,6 @@ func FromHex(s string) []byte { return nil } -type Bytes []byte - -func (self Bytes) String() string { - return string(self) -} - -func DeleteFromByteSlice(s [][]byte, hash []byte) [][]byte { - for i, h := range s { - if bytes.Compare(h, hash) == 0 { - return append(s[:i:i], s[i+1:]...) - } - } - - return s -} - // Number to bytes // // Returns the number in bytes with the specified base |