From 13619d8fdf290a4cf4d017c245672d62e1727bad Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 27 Apr 2023 19:46:05 +0000 Subject: [PATCH] Remove unused variable in CGUIContextMenu y was set in 2 places, but never used for anything. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6476 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CGUIContextMenu.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/Irrlicht/CGUIContextMenu.cpp b/source/Irrlicht/CGUIContextMenu.cpp index 417330a2..474d5933 100644 --- a/source/Irrlicht/CGUIContextMenu.cpp +++ b/source/Irrlicht/CGUIContextMenu.cpp @@ -533,7 +533,6 @@ void CGUIContextMenu::draw() // loop through all menu items rect = AbsoluteRect; - s32 y = AbsoluteRect.UpperLeftCorner.Y; for (s32 i=0; i<(s32)Items.size(); ++i) { @@ -550,8 +549,6 @@ void CGUIContextMenu::draw() rect.LowerRightCorner.Y += 1; rect.UpperLeftCorner.Y += 1; skin->draw2DRectangle(this, skin->getColor(EGDC_3D_HIGH_LIGHT), rect, clip); - - y += 10; } else {