--- a/src/signs.cpp Tue May 27 20:05:36 2008 +0000
+++ b/src/signs.cpp Tue May 27 20:25:28 2008 +0000
@@ -24,7 +24,6 @@
#include "table/strings.h"
SignID _new_sign_id;
-uint _total_signs;
bool _sign_sort_dirty;
/* Initialize the sign-pool */
@@ -115,7 +114,6 @@
InvalidateWindow(WC_SIGN_LIST, 0);
_sign_sort_dirty = true;
_new_sign_id = si->index;
- _total_signs++;
}
return CommandCost();
@@ -162,7 +160,6 @@
InvalidateWindow(WC_SIGN_LIST, 0);
_sign_sort_dirty = true;
- _total_signs--;
}
}
@@ -202,7 +199,6 @@
*/
void InitializeSigns()
{
- _total_signs = 0;
_Sign_pool.CleanPool();
_Sign_pool.AddBlockToPool();
}
@@ -241,13 +237,10 @@
*/
static void Load_SIGN()
{
- _total_signs = 0;
int index;
while ((index = SlIterateArray()) != -1) {
Sign *si = new (index) Sign();
SlObject(si, _sign_desc);
-
- _total_signs++;
}
_sign_sort_dirty = true;
--- a/src/signs_base.h Tue May 27 20:05:36 2008 +0000
+++ b/src/signs_base.h Tue May 27 20:25:28 2008 +0000
@@ -40,12 +40,6 @@
return GetSignPoolSize() - 1;
}
-static inline uint GetNumSigns()
-{
- extern uint _total_signs;
- return _total_signs;
-}
-
static inline bool IsValidSignID(uint index)
{
return index < GetSignPoolSize() && GetSign(index)->IsValid();