From d8de8c129fb9fc8d2110f39108949d7025456151 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:08 +0200 Subject: Remove dead code --- src/init1.cc | 2 -- src/randart.cc | 20 -------------------- src/randart.hpp | 1 - src/variable.cc | 7 ------- 4 files changed, 30 deletions(-) (limited to 'src') diff --git a/src/init1.cc b/src/init1.cc index fa99031f..012537ce 100644 --- a/src/init1.cc +++ b/src/init1.cc @@ -43,7 +43,6 @@ #include "store_action_type.hpp" #include "store_flag.hpp" #include "store_info_type.hpp" -#include "store_type.hpp" #include "tables.hpp" #include "town_type.hpp" #include "trap_type.hpp" @@ -53,7 +52,6 @@ #include "variable.h" #include "variable.hpp" #include "vault_type.hpp" -#include "wilderness_map.hpp" #include "wilderness_type_info.hpp" #include "z-rand.hpp" diff --git a/src/randart.cc b/src/randart.cc index 7a6b2398..698be95b 100644 --- a/src/randart.cc +++ b/src/randart.cc @@ -26,10 +26,8 @@ #include /* Chance of using syllables to form the name instead of the "template" files */ -#define TABLE_NAME 45 #define A_CURSED 13 #define WEIRD_LUCK 12 -#define ACTIVATION_CHANCE 3 /* * Attempt to add a power to a randart @@ -115,24 +113,6 @@ static bool_ grab_one_power(int *ra_idx, object_type *o_ptr, bool_ good, s16b *m return (ret); } -void give_activation_power (object_type * o_ptr) -{ - o_ptr->xtra2 = 0; - o_ptr->art_flags &= ~TR_ACTIVATE; - o_ptr->timeout = 0; -} - - -int get_activation_power() -{ - object_type *o_ptr, forge; - - o_ptr = &forge; - - give_activation_power(o_ptr); - - return o_ptr->xtra2; -} #define MIN_NAME_LEN 5 #define MAX_NAME_LEN 9 diff --git a/src/randart.hpp b/src/randart.hpp index 31b70f08..385ee2a5 100644 --- a/src/randart.hpp +++ b/src/randart.hpp @@ -3,7 +3,6 @@ #include "h-basic.h" #include "object_type_fwd.hpp" -extern int get_activation_power(void); extern void build_prob(cptr learn); extern bool_ create_artifact(object_type *o_ptr, bool_ a_scroll, bool_ get_name); extern bool_ artifact_scroll(void); diff --git a/src/variable.cc b/src/variable.cc index f3defc5d..777c2b17 100644 --- a/src/variable.cc +++ b/src/variable.cc @@ -277,13 +277,6 @@ bool_ *macro__cmd; char *macro__buf; -/* - * The array of normal options - */ -u32b option_flag[8]; -u32b option_mask[8]; - - /* * The array of window options */ -- cgit v1.2.3