From 506b804be4f777ec160a64db683343adb13636b4 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 15 Jun 2026 14:35:30 -0600 Subject: [PATCH] Remove unused `GetStorage` function on Set --- filter/set.go | 5 ----- filter/set_test.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/filter/set.go b/filter/set.go index 22903c9..5c4145f 100644 --- a/filter/set.go +++ b/filter/set.go @@ -74,11 +74,6 @@ func NewSet(config *SetConfig, storage storage.PersistentStorage, pubsub pubsub. return set, nil } -// GetStorage - Accessor to the underlying PersistentStorage -func (s *Set) GetStorage() storage.PersistentStorage { - return s.storage -} - // CheckEvent - Checks an event over all of the set groups in order. If a set group errors, execution stops there. // Note: the mediaDownloader may be nil to prevent parsing and downloading of media. This should only be done in test environments. func (s *Set) CheckEvent(ctx context.Context, event gomatrixserverlib.PDU, mediaDownloader media.Downloader) (confidence.Vectors, error) { diff --git a/filter/set_test.go b/filter/set_test.go index 8fbb8ff..539e852 100644 --- a/filter/set_test.go +++ b/filter/set_test.go @@ -40,8 +40,6 @@ func TestNewSet(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, set) - assert.Equal(t, set.GetStorage(), memStorage) - assert.Equal(t, len(cnf.Groups), len(set.groups)) assert.Equal(t, len(cnf.Groups[0].EnabledNames), len(set.groups[0].filters))