summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-30 20:40:33 +0000
committerrubidium <rubidium@openttd.org>2007-08-30 20:40:33 +0000
commit8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec (patch)
tree1e96eadb775a124c36850f50c357f93af14e4be2 /src/waypoint.cpp
parent9833639b00ff84b671a3943e350ed195935e31ad (diff)
downloadopenttd-8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec.tar.xz
(svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles.
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 7383a2e9f..52eed75ed 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -418,12 +418,6 @@ Waypoint::~Waypoint()
this->xy = 0;
}
-bool Waypoint::IsValid() const
-{
- return this->xy != 0;
-}
-
-
/**
* Fix savegames which stored waypoints in their old format
*/