aboutsummaryrefslogtreecommitdiff
path: root/internal/game/production_index.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/production_index.go
parent9192d94dea6be5498ab080f3e2df5667af871d7a (diff)
downloadthehouseoficarus-a6cf03a6ae98e4fb675da25046d148e92bcf7206.tar.gz
chore: staticcheck and gofmt cleanups
Diffstat (limited to 'internal/game/production_index.go')
-rw-r--r--internal/game/production_index.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/game/production_index.go b/internal/game/production_index.go
index 77fc08a..672dcae 100644
--- a/internal/game/production_index.go
+++ b/internal/game/production_index.go
@@ -153,15 +153,6 @@ func (idx *CraftIndex) FindByStationInput(stationDefID, itemID string) []*item.I
return results
}
-func craftEntryFor(def *item.ItemDef, itemID string) int {
- for _, craft := range def.Craft {
- if ei := craftEntry(craft, itemID); ei >= 0 {
- return ei
- }
- }
- return -1
-}
-
func craftEntry(craft item.CraftDef, itemID string) int {
for ei, e := range craft.Ingredients {
for _, id := range e.Items {