summaryrefslogtreecommitdiff
path: root/poezio/size_manager.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-04-02 01:09:23 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-12 15:31:15 +0100
commitb08688c7014d9e68ac26fe604dc5a48372c67167 (patch)
tree56acf6f7fd74851da42f9fe271e76912d0153828 /poezio/size_manager.py
parent367d4599c86ff13fe625e3db93ed9044c083e201 (diff)
downloadpoezio-b08688c7014d9e68ac26fe604dc5a48372c67167.tar.gz
poezio-b08688c7014d9e68ac26fe604dc5a48372c67167.tar.bz2
poezio-b08688c7014d9e68ac26fe604dc5a48372c67167.tar.xz
poezio-b08688c7014d9e68ac26fe604dc5a48372c67167.zip
Remove unused properties in SizeManager.
Diffstat (limited to 'poezio/size_manager.py')
-rw-r--r--poezio/size_manager.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/poezio/size_manager.py b/poezio/size_manager.py
index 1cad83fd..1a8735ab 100644
--- a/poezio/size_manager.py
+++ b/poezio/size_manager.py
@@ -16,31 +16,22 @@ class SizeManager(object):
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
-