From: <ral...@us...> - 2015-01-12 07:34:28
|
Revision: 9694 http://sourceforge.net/p/planeshift/code/9694 Author: ralphcampbell Date: 2015-01-12 07:34:25 +0000 (Mon, 12 Jan 2015) Log Message: ----------- Remove unused variables in pawsactivemagicwindow.cpp Modified Paths: -------------- trunk/src/client/gui/pawsactivemagicwindow.cpp Modified: trunk/src/client/gui/pawsactivemagicwindow.cpp =================================================================== --- trunk/src/client/gui/pawsactivemagicwindow.cpp 2015-01-10 23:44:51 UTC (rev 9693) +++ trunk/src/client/gui/pawsactivemagicwindow.cpp 2015-01-12 07:34:25 UTC (rev 9694) @@ -188,7 +188,7 @@ csList<csString> rowEntry; size_t numSpells=incoming.name.GetSize(); - show = !showWindow->GetState() && (buffList->GetSize() < numSpells); + show = !showWindow->GetState() && ((size_t)buffList->GetSize() < numSpells); if(!IsVisible() && psengine->loadstate == psEngine::LS_DONE && show) { pawsControlledWindow::Show(); @@ -329,9 +329,7 @@ bottomEdge = GetScreenFrame().ymax; int newLeftEdge = 0, - newRightEdge = 0, newTopEdge = 0, - newBottomEdge = 0, newHeight = 0, newWidth = 0, tOrientation = Orientation; @@ -343,8 +341,7 @@ int verticalScrollWidth = 10, horizontalScrollHeight = 0; - int buttonWidth = buffList->GetButtonWidth(), - buttonHeight = buffList->GetButtonHeight(), + int buttonHeight = buffList->GetButtonHeight(), buttonWidestWidth = buffList->GetWidestWidth(), buttonsCount = buffList->GetSize(); @@ -417,10 +414,6 @@ newTopEdge = ((topEdge <= 0) ? 0 : topEdge); } - // Calculate bottom right corner coordinates - newRightEdge = newLeftEdge + newWidth; - newBottomEdge = newTopEdge + newHeight; - SetRelativeFrame( newLeftEdge, newTopEdge, newWidth, newHeight ); //SetRelativeFrame calls OnResize which will recalculate Orientation, but we don't want This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |