summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 16:16:22 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 16:16:22 +0000
commitae0c5cb4ea464e174d3ff287532d316d32b9df24 (patch)
treef91fba838342d1ce1a894bf8ce62ce59f17e4984 /crawl-ref
parent16a24b1da64a89291c3b8fe9be4658ca0a3b80d7 (diff)
downloadcrawl-ref-ae0c5cb4ea464e174d3ff287532d316d32b9df24.tar.gz
crawl-ref-ae0c5cb4ea464e174d3ff287532d316d32b9df24.zip
Removed dead code.
Unbroke tiles build (sorry...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7104 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/tilepick.cc2
-rw-r--r--crawl-ref/source/traps.cc23
2 files changed, 1 insertions, 24 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 492acc1721..9acb11bf28 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -2121,7 +2121,7 @@ int tileidx_feature(int object, int gx, int gy)
case DNGN_TRAP_MECHANICAL:
case DNGN_TRAP_MAGICAL:
case DNGN_TRAP_NATURAL:
- return _tileidx_trap(trap_type_at_xy(coord_def(gx, gy)));
+ return _tileidx_trap(get_trap_type(coord_def(gx, gy)));
case DNGN_ENTER_SHOP:
return TILE_DNGN_ENTER_SHOP;
case DNGN_ENTER_LABYRINTH:
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index b6979e574f..7d3c1430d7 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -1242,29 +1242,6 @@ dungeon_feature_type trap_def::category() const
}
}
-
-// Returns index of the trap for a given (x,y) coordinate pair {dlb}
-int trap_at_xy(const coord_def& xy)
-{
- for (int which_trap = 0; which_trap < MAX_TRAPS; which_trap++)
- {
- if (env.trap[which_trap].pos == xy
- && env.trap[which_trap].type != TRAP_UNASSIGNED)
- {
- return (which_trap);
- }
- }
-
- // No idea how well this will be handled elsewhere. {dlb}
- return (-1);
-}
-
-trap_type trap_type_at_xy(const coord_def& xy)
-{
- const int idx = trap_at_xy(xy);
- return (idx == -1 ? NUM_TRAPS : env.trap[idx].type);
-}
-
bool is_valid_shaft_level(const level_id &place)
{
if (place.level_type != LEVEL_DUNGEON)