File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 1919package event
2020
2121import (
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.
8973const MaxCategoryIndex = 13
9074
You can’t perform that action at this time.
0 commit comments