Skip to content

Commit

Permalink
clamp unused
Browse files Browse the repository at this point in the history
  • Loading branch information
snissn committed Jul 31, 2024
1 parent df59d5d commit 2a65044
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions blockstore/badger/versions/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,3 @@ func OpenBadgerDB(opts Options) (BadgerDB, error) {
}
return db, nil
}

func clamp(x, min, max int) int {
if x < min {
return min
}
if x > max {
return max
}
return x
}

0 comments on commit 2a65044

Please sign in to comment.