summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src/toolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TopToolBar/src/toolbar.cpp')
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp
index 3d9e737351..650e2d03d4 100644
--- a/plugins/TopToolBar/src/toolbar.cpp
+++ b/plugins/TopToolBar/src/toolbar.cpp
@@ -207,8 +207,8 @@ int ArrangeButtons()
return 0;
int nLineCount = 0;
- int i, ypos = 1, xpos = g_ctrl->nButtonSpace, nextX = 0, y = 0;
- int newheight = g_ctrl->nButtonHeight + 1, nButtonCount = 0;
+ int i, nextX = 0, y = 0;
+ int nButtonCount = 0;
for (i = 0; i < Buttons.getCount(); i++)
if (Buttons[i]->hwnd)
@@ -243,8 +243,6 @@ int ArrangeButtons()
bWasButttonBefore = !b->isSep();
}
- int nFreeSpace = nBarSize - nUsedWidth;
-
for (i = iFirstButtonId; i < iLastButtonId; i++) {
TopButtonInt *b = Buttons[i];
if (b->hwnd == NULL)