summaryrefslogtreecommitdiff
path: root/internal/federation/dereferencing/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/federation/dereferencing/util.go')
-rw-r--r--internal/federation/dereferencing/util.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/internal/federation/dereferencing/util.go b/internal/federation/dereferencing/util.go
index c37f2d82d..38622f6c1 100644
--- a/internal/federation/dereferencing/util.go
+++ b/internal/federation/dereferencing/util.go
@@ -23,17 +23,6 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
)
-// doOnce wraps a function to only perform it once.
-func doOnce(fn func()) func() {
- var once int32
- return func() {
- if once == 0 {
- fn()
- once = 1
- }
- }
-}
-
// pollChanged returns whether a poll has changed in way that
// indicates that this should be an entirely new poll. i.e. if
// the available options have changed, or the expiry has increased.