aboutsummaryrefslogtreecommitdiff
path: root/internal/game/owner.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/owner.go')
-rw-r--r--internal/game/owner.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/game/owner.go b/internal/game/owner.go
index ce1f687..9c7be64 100644
--- a/internal/game/owner.go
+++ b/internal/game/owner.go
@@ -177,18 +177,6 @@ func (g *Game) RunAdminOnOwner(fn func()) bool {
return accepted
}
-// tryRun executes fn on the owner if it is currently idle-draining; it is
-// not currently used for correctness paths but exists for future non-blocking
-// administrative reads. It returns false when the queue is full.
-func (g *Game) tryRun(fn func()) bool {
- o := g.owner
- if o == nil {
- fn()
- return true
- }
- return o.submit(fn)
-}
-
// currentGoroutineID returns the calling goroutine's ID parsed from its
// stack header ("goroutine 123 [running]:"), 0 when unparseable.
func currentGoroutineID() uint64 {