diff options
author | smatz <smatz@openttd.org> | 2008-05-27 20:25:28 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-27 20:25:28 +0000 |
commit | 437d5d9798f523c29bfaae0a2849c471249a65b6 (patch) | |
tree | 81e746a5cfdfb205ffd958ea533b89f1f4cecb04 | |
parent | cfb962c7f135111891c28c6577f27f42d5365aa1 (diff) | |
download | openttd-437d5d9798f523c29bfaae0a2849c471249a65b6.tar.xz |
(svn r13298) -Codechange: remove unused _total_signs
-rw-r--r-- | src/signs.cpp | 7 | ||||
-rw-r--r-- | src/signs_base.h | 6 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/signs.cpp b/src/signs.cpp index 1e5d40860..8c1ad123c 100644 --- a/src/signs.cpp +++ b/src/signs.cpp @@ -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 @@ CommandCost CmdPlaceSign(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) InvalidateWindow(WC_SIGN_LIST, 0); _sign_sort_dirty = true; _new_sign_id = si->index; - _total_signs++; } return CommandCost(); @@ -162,7 +160,6 @@ CommandCost CmdRenameSign(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) InvalidateWindow(WC_SIGN_LIST, 0); _sign_sort_dirty = true; - _total_signs--; } } @@ -202,7 +199,6 @@ void PlaceProc_Sign(TileIndex tile) */ void InitializeSigns() { - _total_signs = 0; _Sign_pool.CleanPool(); _Sign_pool.AddBlockToPool(); } @@ -241,13 +237,10 @@ static void Save_SIGN() */ 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; diff --git a/src/signs_base.h b/src/signs_base.h index e27441cb4..4d0d05926 100644 --- a/src/signs_base.h +++ b/src/signs_base.h @@ -40,12 +40,6 @@ static inline SignID GetMaxSignIndex() 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(); |