summaryrefslogtreecommitdiff
path: root/src/pathfinder
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-12 21:36:43 +0000
committeryexo <yexo@openttd.org>2010-08-12 21:36:43 +0000
commit241d705406572d512710cf29316d7603210a6ecf (patch)
tree59314fc8cb6d6b97e425f36626da716ac9c3f4a5 /src/pathfinder
parent089fc97387af79a8023677ac60ca1f6623da1dc5 (diff)
downloadopenttd-241d705406572d512710cf29316d7603210a6ecf.tar.xz
(svn r20474) -Cleanup: remove some unused code
Diffstat (limited to 'src/pathfinder')
-rw-r--r--src/pathfinder/npf/npf.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp
index 851163ac6..f03b2d9af 100644
--- a/src/pathfinder/npf/npf.cpp
+++ b/src/pathfinder/npf/npf.cpp
@@ -124,15 +124,6 @@ static uint NPFDistanceTrack(TileIndex t0, TileIndex t1)
return diagTracks * NPF_TILE_LENGTH + straightTracks * NPF_TILE_LENGTH * STRAIGHT_TRACK_LENGTH;
}
-
-#if 0
-static uint NTPHash(uint key1, uint key2)
-{
- /* This function uses the old hash, which is fixed on 10 bits (1024 buckets) */
- return PATHFIND_HASH_TILE(key1);
-}
-#endif
-
/**
* Calculates a hash value for use in the NPF.
* @param key1 The TileIndex of the tile to hash