From 4133407061407816a66e209f88cff7407cf587e2 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Fri, 27 Dec 2013 08:39:54 -0800 Subject: [PATCH] crypto/cipher: remove unused shift1 function R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/38990045 --- src/pkg/crypto/cipher/cipher.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/pkg/crypto/cipher/cipher.go b/src/pkg/crypto/cipher/cipher.go index 1ffaa8c2c3..67afdb1e05 100644 --- a/src/pkg/crypto/cipher/cipher.go +++ b/src/pkg/crypto/cipher/cipher.go @@ -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) -- 2.48.1