Remove unused properties in SizeManager.
This commit is contained in:
parent
367d4599c8
commit
b08688c701
2 changed files with 7 additions and 16 deletions
|
@ -1643,9 +1643,9 @@ class Core(object):
|
|||
return
|
||||
self.left_tab_win = windows.VerticalGlobalInfoBar(truncated_win)
|
||||
elif not self.size.core_degrade_y:
|
||||
self.tab_win.resize(1, tabs.Tab.width,
|
||||
tabs.Tab.height - 2, 0)
|
||||
self.left_tab_win = None
|
||||
self.tab_win.resize(1, tabs.Tab.width,
|
||||
tabs.Tab.height - 2, 0)
|
||||
self.left_tab_win = None
|
||||
|
||||
def add_message_to_text_buffer(self, buff, txt, nickname=None):
|
||||
"""
|
||||
|
|
|
@ -15,32 +15,23 @@ class SizeManager(object):
|
|||
self._win_class = win_cls
|
||||
self._core = core
|
||||
|
||||
@property
|
||||
def tab_scr(self):
|
||||
return self._win_class._tab_win
|
||||
|
||||
@property
|
||||
def core_scr(self):
|
||||
return self._core.stdscr
|
||||
|
||||
@property
|
||||
def tab_degrade_x(self):
|
||||
_, x = self.tab_scr.getmaxyx()
|
||||
_, x = self._win_class._tab_win.getmaxyx()
|
||||
return x < THRESHOLD_WIDTH_DEGRADE
|
||||
|
||||
@property
|
||||
def tab_degrade_y(self):
|
||||
y, x = self.tab_scr.getmaxyx()
|
||||
y, x = self._win_class._tab_win.getmaxyx()
|
||||
return y < THRESHOLD_HEIGHT_DEGRADE
|
||||
|
||||
@property
|
||||
def core_degrade_x(self):
|
||||
y, x = self.core_scr.getmaxyx()
|
||||
y, x = self._core.stdscr.getmaxyx()
|
||||
return x < FULL_WIDTH_DEGRADE
|
||||
|
||||
@property
|
||||
def core_degrade_y(self):
|
||||
y, x = self.core_scr.getmaxyx()
|
||||
y, x = self._core.stdscr.getmaxyx()
|
||||
return y < FULL_HEIGHT_DEGRADE
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue