diff --git a/container/acl/util.go b/container/acl/util.go index 79b5134f..d4e5877e 100644 --- a/container/acl/util.go +++ b/container/acl/util.go @@ -7,16 +7,6 @@ func setBit(num *uint32, n uint8) { *num |= 1 << n } -// resets n-th bit in num (starting at 0). -// -// nolint: unused -func resetBit(num *uint32, n uint8) { - var mask uint32 - setBit(&mask, n) - - *num &= ^mask -} - // checks if n-th bit in num is set (starting at 0). func isBitSet(num uint32, n uint8) bool { mask := uint32(1 << n) diff --git a/container/acl/util_test.go b/container/acl/util_test.go index 7881c175..b0d99cc7 100644 --- a/container/acl/util_test.go +++ b/container/acl/util_test.go @@ -22,9 +22,6 @@ func TestBits(t *testing.T) { setBit(&num, 6) require.EqualValues(t, 0b1011110, num) - - resetBit(&num, 1) - require.EqualValues(t, 0b1011100, num) } func TestOpBits(t *testing.T) {