summaryrefslogtreecommitdiff
path: root/internal/syncpool
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-22 20:33:32 +0200
committerPaul Buetow <paul@buetow.org>2024-02-22 20:33:32 +0200
commitf649f89201cf1b8a8a8aab98dba91bbbd96ecd09 (patch)
treeae679a032479c92ff5d18169b73d7b3921706bde /internal/syncpool
parente800879cd818f51f83c3bfa86a42aa331a58af0c (diff)
finally make use of the NQC's generated code
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]()