Bladeren bron

snappy-go: Remove equal4

This unexported function is not used anymore after the last CL
was submitted.

R=nigeltao, dchest, dave
CC=golang-dev
https://codereview.appspot.com/7377044

Committer: Nigel Tao <nigeltao@golang.org>
Jan Mercl 12 jaren geleden
bovenliggende
commit
ce8acff482
1 gewijzigde bestanden met toevoegingen van 0 en 8 verwijderingen
  1. 0 8
      snappy/encode.go

+ 0 - 8
snappy/encode.go

@@ -11,14 +11,6 @@ import (
 // We limit how far copy back-references can go, the same as the C++ code.
 const maxOffset = 1 << 15
 
-// equal4 returns whether b[i:i+4] equals b[j:j+4].
-func equal4(b []byte, i, j int) bool {
-	return b[i] == b[j] &&
-		b[i+1] == b[j+1] &&
-		b[i+2] == b[j+2] &&
-		b[i+3] == b[j+3]
-}
-
 // emitLiteral writes a literal chunk and returns the number of bytes written.
 func emitLiteral(dst, lit []byte) int {
 	i, n := 0, uint(len(lit)-1)