From 5ff81aca1873824af8b00eeb74ddedfce9dfef4a Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 30 Aug 2007 20:40:33 +0000 Subject: (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. --- src/oldpool.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/oldpool.h') 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. -- cgit v1.2.3-70-g09d2