summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-18 22:35:41 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:07:54 +0100
commitabd9033aa9c55ffbc8140d1fbfa28fb585844f47 (patch)
tree0ac5f19676a4f6795d3c5b0ee21f85d4933240fb
parent666ce02020925a67386429b451d23071521d6da8 (diff)
Eliminate hook_file global
-rw-r--r--src/files.cc2
-rw-r--r--src/hooks.cc2
-rw-r--r--src/hooks.h1
3 files changed, 0 insertions, 5 deletions
diff --git a/src/files.cc b/src/files.cc
index 67e531ac..ed782f72 100644
--- a/src/files.cc
+++ b/src/files.cc
@@ -2604,8 +2604,6 @@ errr file_character(cptr name, bool_ full)
}
/* List the patches */
- hook_file = fff;
-
fprintf(fff, "\n\n [Miscellaneous information]\n");
if (joke_monsters)
fprintf(fff, "\n Joke monsters: ON");
diff --git a/src/hooks.cc b/src/hooks.cc
index e1dff3ce..3f2bc422 100644
--- a/src/hooks.cc
+++ b/src/hooks.cc
@@ -10,8 +10,6 @@
#include <assert.h>
/******** Hooks stuff *********/
-FILE *hook_file;
-
#define MAX_ARGS 50
static hooks_chain *hooks_heads[MAX_HOOKS];
diff --git a/src/hooks.h b/src/hooks.h
index 47d7b964..51da4adf 100644
--- a/src/hooks.h
+++ b/src/hooks.h
@@ -6,7 +6,6 @@
extern "C" {
#endif
-extern FILE *hook_file;
extern void wipe_hooks(void);
extern void init_hooks(void);
extern hooks_chain* add_hook(int h_idx, hook_type hook, cptr name);