summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:00 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:00 +0100
commit4a7bde2b7fcfe8cbd70ed1a2f2ddc9445022b86b (patch)
tree32927b2c20bd97f8b3df8ffc973dca98439e4e9f
parent21bbf94c159d161058282696630e0e0431917e92 (diff)
Make a few functions module-static and remove dead code
-rw-r--r--src/cmd4.cc2
-rw-r--r--src/externs.h5
-rw-r--r--src/files.cc38
3 files changed, 3 insertions, 42 deletions
diff --git a/src/cmd4.cc b/src/cmd4.cc
index abc8a35f..7afc3a3c 100644
--- a/src/cmd4.cc
+++ b/src/cmd4.cc
@@ -3929,7 +3929,7 @@ void do_cmd_knowledge_towns(void)
/*
* List corruptions
*/
-void do_cmd_knowledge_corruptions(void)
+static void do_cmd_knowledge_corruptions(void)
{
FILE *fff;
diff --git a/src/externs.h b/src/externs.h
index 6241bef2..17ab2869 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -709,7 +709,6 @@ extern cptr describe_player_location(void);
extern errr file_character(cptr name, bool_ full);
extern errr process_pref_file_aux(char *buf);
extern errr process_pref_file(cptr name);
-extern void read_times(void);
extern bool_ txt_to_html(cptr head, cptr food, cptr base, cptr ext, bool_ force, bool_ recur);
extern bool_ show_file(cptr name, cptr what, int line, int mode);
extern void do_cmd_help(void);
@@ -719,14 +718,10 @@ extern void get_name(void);
extern void do_cmd_suicide(void);
extern void do_cmd_save_game(void);
extern void autosave_checkpoint();
-extern long total_points(void);
-extern void display_scores(int from, int to);
-extern errr predict_score(void);
extern void predict_score_gui(bool_ *initialized, bool_ *game_in_progress);
extern void close_game(void);
extern errr get_rnd_line(const char * file_name, char * output);
extern char *get_line(const char* fname, cptr fdir, char *linbuf, int line);
-extern void do_cmd_knowledge_corruptions(void);
extern void race_legends(void);
extern void show_highclass(int building);
extern errr get_xtra_line(const char * file_name, monster_type *m_ptr, char * output);
diff --git a/src/files.cc b/src/files.cc
index d89e9e18..77188e81 100644
--- a/src/files.cc
+++ b/src/files.cc
@@ -4299,7 +4299,7 @@ void autosave_checkpoint()
/*
* Hack -- Calculates the total number of points earned -JWT-
*/
-long total_points(void)
+static long total_points(void)
{
s16b max_dl = 0, i, k;
long temp, Total = 0;
@@ -4877,40 +4877,6 @@ static void display_scores_aux(int highscore_fd, int from, int to, int note, hig
/*
- * Hack -- Display the scores in a given range and quit.
- *
- * This function is only called from "main.c" when the user asks
- * to see the "high scores".
- */
-void display_scores(int from, int to)
-{
- char buf[1024];
- int highscore_fd;
-
- /* Build the filename */
- path_build(buf, 1024, ANGBAND_DIR_USER, "scores.raw");
-
- /* Open the binary high score file, for reading */
- highscore_fd = fd_open(buf, O_RDONLY);
-
- /* Paranoia -- No score file */
- if (highscore_fd < 0) quit("Score file unavailable.");
-
- /* Clear screen */
- Term_clear();
-
- /* Display the scores */
- display_scores_aux(highscore_fd, from, to, -1, NULL);
-
- /* Shut the high score file */
- fd_close(highscore_fd);
-
- /* Quit */
- quit(NULL);
-}
-
-
-/*
* show_highclass - selectively list highscores based on class
* -KMW-
*/
@@ -5269,7 +5235,7 @@ out:
/*
* Predict the players location, and display it.
*/
-errr predict_score(void)
+static errr predict_score(void)
{
int j;