Skip to content

Commit

Permalink
config: remove unused FilterSets method
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Nov 3, 2021
1 parent ae7e5a3 commit 579719a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions config/updaters.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package config

import (
"github.com/quay/claircore/libvuln/driver"
"gopkg.in/yaml.v3"
)

Expand Down Expand Up @@ -36,18 +35,3 @@ type Updaters struct {
// from running, vs disabling the updater set completely.
Filter string `yaml:"filter" json:"filter"`
}

func (u *Updaters) FilterSets(m map[string]driver.UpdaterSetFactory) {
if u.Sets != nil {
Outer:
for k := range m {
for _, n := range u.Sets {
if k == n {
continue Outer
}
}
delete(m, k)
}
}
return
}

0 comments on commit 579719a

Please sign in to comment.