cleanup: remove unused isRoad, isRail methods
This commit is contained in:
parent
ef5635f6a3
commit
1da5fdf402
2 changed files with 1 additions and 19 deletions
|
@ -180,7 +180,7 @@ public abstract class Sprite
|
|||
|
||||
int t = city.getTile(xpos, ypos);
|
||||
if (isOverWater(t)) {
|
||||
if (isRoad(t)) {
|
||||
if (isRoadAny(t)) {
|
||||
// becomes water
|
||||
city.setTile(xpos, ypos, RIVER);
|
||||
}
|
||||
|
|
|
@ -384,17 +384,6 @@ public class TileConstants
|
|||
return (tile == DIRT || (isDozeable(tile) && isCombustible(tile)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Note: does not include rail/road tiles.
|
||||
* @see #isRoadAny
|
||||
*/
|
||||
public static boolean isRoad(int tile)
|
||||
{
|
||||
assert (tile & LOMASK) == tile;
|
||||
|
||||
return (tile >= ROADBASE && tile < POWERBASE);
|
||||
}
|
||||
|
||||
public static boolean isRoadAny(int tile)
|
||||
{
|
||||
assert (tile & LOMASK) == tile;
|
||||
|
@ -458,13 +447,6 @@ public class TileConstants
|
|||
(tile != VBRIDGE));
|
||||
}
|
||||
|
||||
public static boolean isRail(int tile)
|
||||
{
|
||||
assert (tile & LOMASK) == tile;
|
||||
|
||||
return (tile >= RAILBASE && tile < RESBASE);
|
||||
}
|
||||
|
||||
public static boolean isRailAny(int tile)
|
||||
{
|
||||
assert (tile & LOMASK) == tile;
|
||||
|
|
Reference in a new issue