summaryrefslogtreecommitdiff
path: root/src/init1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:31 +0200
committerBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:31 +0200
commitdc5d98492f3f0368a8cd39bee86434337d63aad3 (patch)
tree1bb231bcdbd5a075bd240eeb5f42a32f5a779e0f /src/init1.cc
parentb2982a39631887045982fb0a4f58ac4558b8c42c (diff)
Remove dead code
Diffstat (limited to 'src/init1.cc')
-rw-r--r--src/init1.cc82
1 files changed, 1 insertions, 81 deletions
diff --git a/src/init1.cc b/src/init1.cc
index 58d74d41..36e628b5 100644
--- a/src/init1.cc
+++ b/src/init1.cc
@@ -6623,38 +6623,6 @@ static const char *process_dungeon_file_expr(char **sp, char *fp)
}
}
- /* Function: LEQ */
- else if (streq(t, "LEQ"))
- {
- v = "1";
- if (*s && (f != b2))
- {
- t = process_dungeon_file_expr(&s, &f);
- }
- while (*s && (f != b2))
- {
- p = t;
- t = process_dungeon_file_expr(&s, &f);
- if (*t && (strcmp(p, t) > 0)) v = "0";
- }
- }
-
- /* Function: GEQ */
- else if (streq(t, "GEQ"))
- {
- v = "1";
- if (*s && (f != b2))
- {
- t = process_dungeon_file_expr(&s, &f);
- }
- while (*s && (f != b2))
- {
- p = t;
- t = process_dungeon_file_expr(&s, &f);
- if (*t && (strcmp(p, t) < 0)) v = "0";
- }
- }
-
/* Oops */
else
{
@@ -6700,38 +6668,8 @@ static const char *process_dungeon_file_expr(char **sp, char *fp)
/* Variable */
if (*b == '$')
{
- /* System */
- if (streq(b + 1, "SYS"))
- {
- v = ANGBAND_SYS;
- }
-
- /* Race */
- else if (streq(b + 1, "RACE"))
- {
- v = rp_ptr->title.c_str(); // The string SHOULD be stable enough for this
- }
-
- /* Race Mod */
- else if (streq(b + 1, "RACEMOD"))
- {
- v = rmp_ptr->title.c_str(); // The string SHOULD be stable enough for this
- }
-
- /* Class */
- else if (streq(b + 1, "CLASS"))
- {
- v = cp_ptr->title.c_str(); // The string SHOULD be stable enough for this
- }
-
- /* Player */
- else if (streq(b + 1, "PLAYER"))
- {
- v = game->player_base.c_str(); // The string SHOULD be stable enough for this
- }
-
/* Town */
- else if (streq(b + 1, "TOWN"))
+ if (streq(b + 1, "TOWN"))
{
strnfmt(pref_tmp_value, 8, "%d", p_ptr->town_num);
v = pref_tmp_value;
@@ -6744,13 +6682,6 @@ static const char *process_dungeon_file_expr(char **sp, char *fp)
v = pref_tmp_value;
}
- /* Current quest number */
- else if (streq(b + 1, "QUEST_NUMBER"))
- {
- strnfmt(pref_tmp_value, 8, "%d", p_ptr->inside_quest);
- v = pref_tmp_value;
- }
-
/* Number of last quest */
else if (streq(b + 1, "LEAVING_QUEST"))
{
@@ -6797,17 +6728,6 @@ static const char *process_dungeon_file_expr(char **sp, char *fp)
v = pref_tmp_value;
}
- /* Variant name */
- else if (streq(b + 1, "VARIANT"))
- {
- v = "ToME";
- }
-
- /* Wilderness */
- else if (streq(b + 1, "WILDERNESS"))
- {
- v = "NORMAL";
- }
}
/* Constant */