summaryrefslogtreecommitdiff
path: root/src/generate.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-02-19 17:09:03 +0100
committerBardur Arantsson <bardur@scientician.net>2011-02-19 19:32:06 +0100
commit946d101429a49b656ee37ad00a927787e2d463fd (patch)
tree99623edd7ad64502efbdefcc2ad1eaf693a062b2 /src/generate.c
parent6a077f767bab67c5847e6ccf98513151462879a4 (diff)
Remove dead (#if 0) code.
Diffstat (limited to 'src/generate.c')
-rw-r--r--src/generate.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/generate.c b/src/generate.c
index ca9f58b0..98d3ff92 100644
--- a/src/generate.c
+++ b/src/generate.c
@@ -6488,36 +6488,6 @@ static bool possible_doorway(int y, int x)
}
-#if 0
-
-/*
- * Places door at y, x position if at least 2 walls found
- */
-static void try_door(int y, int x)
-{
- /* Paranoia */
- if (!in_bounds(y, x)) return;
-
- /* Some dungeons don't have doors at all */
- if (dungeon_flags1 & (DF1_NO_DOORS)) return;
-
- /* Ignore walls */
- if (f_info[cave[y][x].feat].flags1 & FF1_WALL) return;
-
- /* Ignore room grids */
- if (cave[y][x].info & (CAVE_ROOM)) return;
-
- /* Occasional door (if allowed) */
- if (possible_doorway(y, x) && (rand_int(100) < DUN_TUN_JCT))
- {
- /* Place a door */
- place_random_door(y, x);
- }
-}
-
-#endif /* 0 */
-
-
/*
* Places doors around y, x position
*/