summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
commitd8de8c129fb9fc8d2110f39108949d7025456151 (patch)
tree04ef01514748c70b9e49bbe761bcec773c62f59c /src
parent500324e97a02ad8dcee869e334e81455653f46bf (diff)
Remove dead code
Diffstat (limited to 'src')
-rw-r--r--src/init1.cc2
-rw-r--r--src/randart.cc20
-rw-r--r--src/randart.hpp1
-rw-r--r--src/variable.cc7
4 files changed, 0 insertions, 30 deletions
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 <vector>
/* 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
@@ -278,13 +278,6 @@ char *macro__buf;
/*
- * The array of normal options
- */
-u32b option_flag[8];
-u32b option_mask[8];
-
-
-/*
* The array of window options
*/
u32b window_flag[8];