Unused variable in console.cc
by Fyodor -bank- Osokin · in Torque Game Engine · 07/22/2007 (6:40 am) · 4 replies
If you go /engine/console/console.cc (.cpp) you will fnid there declaration:
static S32 printLevel = 10;and console variable assignment:
addVariable("Con::printLevel", TypeS32, &printLevel);but, this variable is not used at all. Why it exists in engine? :) It's safe to remove it to keep code "clean".About the author
Game developer.
Recent Threads
#2
I know of at least two:
(TGEA) platform/platformMemory.cpp:
U32 gInsertCount = 0;
U32 gRemoveCount = 0;
they are never used
-kornman00
08/04/2007 (1:06 pm)
Maybe a page in the TDN wiki should be added for listing these things (if there really are tons)?I know of at least two:
(TGEA) platform/platformMemory.cpp:
U32 gInsertCount = 0;
U32 gRemoveCount = 0;
they are never used
-kornman00
#3
Those variables won't kill or make your game. It's just cleanup.
08/04/2007 (1:58 pm)
Define tons ;)Those variables won't kill or make your game. It's just cleanup.
#4
Still, a tidy game engine is a happy game engine (executable) :)
(I've seen even VC++'s compiler on full optimization, still include totally unreferenced data :|)
08/04/2007 (2:39 pm)
Scores :PStill, a tidy game engine is a happy game engine (executable) :)
(I've seen even VC++'s compiler on full optimization, still include totally unreferenced data :|)
Torque Owner Stefan Lundmark
It's safe to remove it.