Game Development Community

T3D 1.1 Final - Unused variable in GuiFrameSetCtrl - RESOLVED (THREED-2481)

by Fyodor -bank- Osokin · in Torque 3D Professional · 08/17/2011 (4:44 am) · 3 replies

Inside:
void GuiFrameSetCtrl::onRender(Point2I offset, const RectI &updateRect )
{
   RectI r(offset.x, offset.y, getWidth(), getHeight());

   Parent::onRender( offset, updateRect );
 
   drawDividers(offset);

}
The RectI r() is unused and can be safely removed from the codebase.

#1
08/17/2011 (9:13 am)
I've went ahead and logged this under THREED-2481. Thanks Fyodor Osokin.
#2
08/17/2011 (9:27 am)
Not really a big deal considering the optimizer during Release build will drop that variable from the function stack anyway.
#3
10/11/2011 (4:33 pm)
Fixed in 1.2