Skip to content

Commit 613e417

Browse files
committed
chore(event): Remove CategoryMasks structure
1 parent e079b38 commit 613e417

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pkg/event/category.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package event
2020

2121
import (
22-
"github.com/bits-and-blooms/bitset"
2322
"github.com/rabbitstack/fibratus/pkg/util/hashers"
2423
)
2524

@@ -70,21 +69,6 @@ func (c Category) Hash() uint32 {
7069
return hashers.FnvUint32([]byte(c))
7170
}
7271

73-
// CategoryMasks allows setting and checking the category bit mask.
74-
type CategoryMasks struct {
75-
bs bitset.BitSet
76-
}
77-
78-
// Set sets the category bit in the bit mask.
79-
func (m *CategoryMasks) Set(c Category) {
80-
m.bs.Set(uint(c.Index()))
81-
}
82-
83-
// Test checks if the given category bit is set.
84-
func (m *CategoryMasks) Test(c Category) bool {
85-
return m.bs.Test(uint(c.Index()))
86-
}
87-
8872
// MaxCategoryIndex designates the maximum category index.
8973
const MaxCategoryIndex = 13
9074

0 commit comments

Comments
 (0)