Remove unused variables, unused assignments

see b5028f267d
This commit is contained in:
Metallicow
2020-06-08 01:48:18 -05:00
parent bda5fbefd7
commit 2fbac77fda
3 changed files with 1 additions and 9 deletions

View File

@@ -1794,8 +1794,6 @@ class AuiTabContainer(object):
offset += self._art.GetIndentSize()
rect = wx.Rect(*self._rect)
rect.y = 0
rect.height = self._rect.height
# See if the given page is visible at the given tab offset (effectively scroll position)
for i in range(tabOffset, page_count):
@@ -1807,7 +1805,6 @@ class AuiTabContainer(object):
tab_button = self._tab_close_buttons[i]
rect.x = offset
rect.width = self._rect.width - right_buttons_width - offset - 2
if rect.width <= 0:

View File

@@ -741,9 +741,7 @@ class AuiDefaultDockArt(object):
rect.x = rect.x + (rect.width//2) - (bmp.GetWidth()//2)
rect.width = old_x + rect.width - rect.x - 1
else:
old_y = rect.y
rect.y = rect.y + (rect.height//2) - (bmp.GetHeight()//2)
rect.height = old_y + rect.height - rect.y - 1
if button_state == AUI_BUTTON_STATE_PRESSED:
rect.x += 1

View File

@@ -5603,16 +5603,13 @@ class AuiManager(wx.EvtHandler):
if action_pane == -1:
return positions, sizes
offset = 0
for pane_i in range(action_pane-1, -1, -1):
amount = positions[pane_i+1] - (positions[pane_i] + sizes[pane_i])
if amount >= 0:
offset += amount
pass
else:
positions[pane_i] -= -amount
offset += sizes[pane_i]
# if the dock mode is fixed, make sure none of the panes
# overlap we will bump panes that overlap
offset = 0