diff options
author | Bardur Arantsson <bardur@scientician.net> | 2013-03-27 06:53:00 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2013-09-27 14:46:42 +0200 |
commit | dc34bf59b8be15e654a902f54387805be69f6fda (patch) | |
tree | 1e0d1aba2075f9fcaa3bdba77c6893cc43f29bff | |
parent | acca45d6a22406a74d5dc56e00ff0c6ad8e478b8 (diff) |
Remove dead code
-rw-r--r-- | src/dungeon.c | 5 | ||||
-rw-r--r-- | src/types.h | 6 | ||||
-rw-r--r-- | src/util.c | 16 |
3 files changed, 0 insertions, 27 deletions
diff --git a/src/dungeon.c b/src/dungeon.c index 5eb38c51..df3b41aa 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -5271,11 +5271,6 @@ static void dungeon(void) /* Process the appropriate hooks */ process_hooks(HOOK_END_TURN, "(d)", is_quest(dun_level)); - { - hook_end_turn_in in = { is_quest(dun_level) }; - process_hooks_new(HOOK_END_TURN, &in, NULL); - } - /* Make it pulsate and live !!!! */ if ((dungeon_flags1 & DF1_EVOLVE) && dun_level) { diff --git a/src/types.h b/src/types.h index 7cd9a8a1..8a035da6 100644 --- a/src/types.h +++ b/src/types.h @@ -2220,11 +2220,6 @@ struct hook_get_in { int o_idx; }; -typedef struct hook_end_turn_in hook_end_turn_in; -struct hook_end_turn_in { - bool_ is_quest; -}; - typedef struct hook_player_level_in hook_player_level_in; struct hook_player_level_in { int gained_levels; @@ -2382,7 +2377,6 @@ struct hooks_chain bool_ (*hook_f)(void *, void *, void *); void *hook_data; char name[40]; - char script[40]; byte type; hooks_chain *next; }; @@ -1508,22 +1508,6 @@ errr macro_add(cptr pat, cptr act) /* -* Initialize the "macro" package -*/ -errr macro_init(void) -{ - /* Macro patterns */ - C_MAKE(macro__pat, MACRO_MAX, cptr); - - /* Macro actions */ - C_MAKE(macro__act, MACRO_MAX, cptr); - - /* Success */ - return (0); -} - - -/* * Local "need flush" variable */ static bool_ flush_later = FALSE; |