From 9e64f66409beb8903b980fc17313cdcce1980386 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 18 May 2018 02:55:03 +0200 Subject: [PATCH] gates are never created, probably dead code --- src/triggers/gate.c | 8 -------- src/triggers/gate.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/triggers/gate.c b/src/triggers/gate.c index d3fa1a1a8..4c2c7a9cd 100644 --- a/src/triggers/gate.c +++ b/src/triggers/gate.c @@ -103,11 +103,3 @@ struct trigger_type tt_gate = { gate_read }; -trigger *trigger_gate(building * b, region * target) -{ - trigger *t = t_new(&tt_gate); - gate_data *td = (gate_data *)t->data.v; - td->gate = b; - td->target = target; - return t; -} diff --git a/src/triggers/gate.h b/src/triggers/gate.h index ab90c50ff..297393d70 100644 --- a/src/triggers/gate.h +++ b/src/triggers/gate.h @@ -24,8 +24,6 @@ extern "C" { extern struct trigger_type tt_gate; - struct trigger *trigger_gate(struct building *b, struct region *r); - #ifdef __cplusplus } #endif