diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-05-12 21:18:59 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-05-12 21:18:59 +0200 |
commit | b17e3246fe769e6dc388612d5764150a184aef07 (patch) | |
tree | a487758ff2751e01f932f6c6f92fd414b7594310 /src/server/game/Grids/GridStates.cpp | |
parent | 0334c21394c05b8323dfd4433d1e1177d182baa3 (diff) |
Core/Misc: Fix static analysis issues
Fix uninitialized values spotted by coverity.
Remove unused "dynamic analysis" code, use Valgrind or another dynamic analysis tool instead if needed.
Diffstat (limited to 'src/server/game/Grids/GridStates.cpp')
-rw-r--r-- | src/server/game/Grids/GridStates.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/server/game/Grids/GridStates.cpp b/src/server/game/Grids/GridStates.cpp index 8b57c382cd7..3e085f1f381 100644 --- a/src/server/game/Grids/GridStates.cpp +++ b/src/server/game/Grids/GridStates.cpp @@ -20,18 +20,6 @@ #include "GridNotifiers.h" #include "Log.h" -#ifdef TRINITY_DEBUG -bool GridState::checkMagic() -{ - if (i_Magic != MAGIC_TESTVAL) - { - TC_LOG_ERROR("misc", "!!! GridState: Magic value gone !!!"); - return false; - } - return true; -} -#endif - void InvalidState::Update(Map&, NGridType&, GridInfo&, uint32) const { } |