summaryrefslogtreecommitdiff
path: root/src/road_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/road_map.cpp')
-rw-r--r--src/road_map.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/road_map.cpp b/src/road_map.cpp
index 83a247c48..34028e467 100644
--- a/src/road_map.cpp
+++ b/src/road_map.cpp
@@ -34,14 +34,3 @@ RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt, bool straight_tunnel_bridge
default: return ROAD_NONE;
}
}
-
-
-TrackBits GetAnyRoadTrackBits(TileIndex tile, RoadType rt)
-{
- /* Don't allow local authorities to build roads through road depots or road stops. */
- if (IsRoadDepotTile(tile) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile)) || !HasTileRoadType(tile, rt)) {
- return TRACK_BIT_NONE;
- }
-
- return TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(rt)));
-}