aboutsummaryrefslogtreecommitdiff
path: root/internal/game/owner.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 15:00:46 -0400
committerhistoria <[not public]>2026-09-16 15:00:46 -0400
commita6cf03a6ae98e4fb675da25046d148e92bcf7206 (patch)
tree194499fe9e696be8c31cd915b7ad92678f9f95e0 /internal/game/owner.go
parent9192d94dea6be5498ab080f3e2df5667af871d7a (diff)
downloadthehouseoficarus-a6cf03a6ae98e4fb675da25046d148e92bcf7206.tar.gz
chore: staticcheck and gofmt cleanups
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 {