diff options
author | rubidium <rubidium@openttd.org> | 2007-08-30 20:40:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-30 20:40:33 +0000 |
commit | 5ff81aca1873824af8b00eeb74ddedfce9dfef4a (patch) | |
tree | 1e96eadb775a124c36850f50c357f93af14e4be2 /src/oldpool.h | |
parent | d4290086e800bfb66ac5a51ceabf57d058887559 (diff) | |
download | openttd-5ff81aca1873824af8b00eeb74ddedfce9dfef4a.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/oldpool.h')
-rw-r--r-- | src/oldpool.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/oldpool.h b/src/oldpool.h index 9f79d632e..4ca9dbf07 100644 --- a/src/oldpool.h +++ b/src/oldpool.h @@ -225,15 +225,6 @@ struct PoolItem { { } - /** - * Is this a valid object or not? - * @return true if and only if it is valid - */ - virtual bool IsValid() const - { - return false; - } - private: /** * Allocate a pool item; possibly allocate a new block in the pool. |