summaryrefslogtreecommitdiff
path: root/internal/syncpool
diff options
context:
space:
mode:
Diffstat (limited to 'internal/syncpool')
-rw-r--r--internal/syncpool/syncpool.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/syncpool/syncpool.go b/internal/syncpool/syncpool.go
deleted file mode 100644
index c41034f..0000000
--- a/internal/syncpool/syncpool.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package syncpool
-
-import (
- "ioriotng/internal/types"
- "sync"
-)
-
-func syncPool[T any]() sync.Pool {
- return sync.Pool{
- New: func() interface{} {
- var value T
- return &value
- },
- }
-}
-
-var OpenEnterEvent = syncPool[types.OpenatEnterEvent]()
-var FdEvent = syncPool[types.FdEvent]()
-var NullEvent = syncPool[types.NullEvent]()