diff options
author | Ricardo Catalinas Jiménez <r@untroubled.be> | 2016-02-21 02:56:17 +0800 |
---|---|---|
committer | Ricardo Catalinas Jiménez <r@untroubled.be> | 2016-02-22 06:46:31 +0800 |
commit | e6af65d02a68beccef9a803dc8e921ae3110e70e (patch) | |
tree | 3c7a7fc43737a1fe3682707a16939e180c22b1f6 /common/bytes.go | |
parent | fbf3b2ede2f8286e858205f171391883fcb56b28 (diff) | |
download | go-tangerine-e6af65d02a68beccef9a803dc8e921ae3110e70e.tar.gz go-tangerine-e6af65d02a68beccef9a803dc8e921ae3110e70e.tar.zst go-tangerine-e6af65d02a68beccef9a803dc8e921ae3110e70e.zip |
common: Remove dead code
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 |