1
0
mirror of https://github.com/golang/go synced 2024-09-25 01:20:13 -06:00

crypto/cipher: remove unused shift1 function

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/38990045
This commit is contained in:
Shawn Smith 2013-12-27 08:39:54 -08:00 committed by Brad Fitzpatrick
parent 2ccc9a965b
commit 4133407061

View File

@ -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)