Ver Fonte

wal: remove unused max function

Yicheng Qin há 11 anos atrás
pai
commit
9532810f76
1 ficheiros alterados com 0 adições e 7 exclusões
  1. 0 7
      wal/util.go

+ 0 - 7
wal/util.go

@@ -129,10 +129,3 @@ func parseWalName(str string) (seq, index uint64, err error) {
 func walName(seq, index uint64) string {
 func walName(seq, index uint64) string {
 	return fmt.Sprintf("%016x-%016x.wal", seq, index)
 	return fmt.Sprintf("%016x-%016x.wal", seq, index)
 }
 }
-
-func max(a, b int64) int64 {
-	if a > b {
-		return a
-	}
-	return b
-}