]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/cipher: remove unused shift1 function
authorShawn Smith <shawn.p.smith@gmail.com>
Fri, 27 Dec 2013 16:39:54 +0000 (08:39 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 27 Dec 2013 16:39:54 +0000 (08:39 -0800)
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/38990045

src/pkg/crypto/cipher/cipher.go

index 1ffaa8c2c330795e237e7b6172614f8f77c2d3ee..67afdb1e057a5637c4cf35452e11a108c089de19 100644 (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)