Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Feb 6, 2025
1 parent 9aab587 commit 16c43c6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions internal/db/base/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
package base

import (
"bytes"
"strings"
"time"
)
Expand Down Expand Up @@ -75,14 +74,6 @@ func compareInt(a, b int64) int {
}
return -1
}
func compareUint(a, b uint64) int {
if a == b {
return 0
} else if a > b {
return 1
}
return -1
}
func compareFloat[T float32 | float64](a, b T) int {
if a == b {
return 0
Expand All @@ -102,6 +93,3 @@ func compareTime(a, b time.Time) int {
func compareString(a, b string) int {
return strings.Compare(a, b)
}
func compareBytes(a, b []byte) int {
return bytes.Compare(a, b)
}

0 comments on commit 16c43c6

Please sign in to comment.