From dfef6e5b0f69de4ebcb6f4d6d2c75b301d056cc8 Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Mon, 31 Jul 2023 13:44:52 -0700 Subject: [PATCH] remove unused fxn. --- pkg/engine/engine.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index b4fda8918a02..68c912d17722 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -176,10 +176,6 @@ func filterDetectors(filterFunc func(detectors.Detector) bool, input []detectors return output } -func (e *Engine) setFoundResults() { - atomic.StoreUint32(&e.numFoundResults, 1) -} - // HasFoundResults returns true if any results are found. func (e *Engine) HasFoundResults() bool { return atomic.LoadUint32(&e.numFoundResults) > 0