mirror of https://github.com/golang/go.git
crypto/cipher: remove unused shift1 function
R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/38990045
This commit is contained in:
parent
2ccc9a965b
commit
4133407061
|
|
@ -46,16 +46,6 @@ type BlockMode interface {
|
|||
|
||||
// Utility routines
|
||||
|
||||
func shift1(dst, src []byte) byte {
|
||||
var b byte
|
||||
for i := len(src) - 1; i >= 0; i-- {
|
||||
bb := src[i] >> 7
|
||||
dst[i] = src[i]<<1 | b
|
||||
b = bb
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func dup(p []byte) []byte {
|
||||
q := make([]byte, len(p))
|
||||
copy(q, p)
|
||||
|
|
|
|||
Loading…
Reference in New Issue