about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-30 18:28:27 +0200
committerhut <hut@lavabit.com>2011-09-30 18:28:27 +0200
commit54e67d04df356389680e547c918805545a9c080c (patch)
tree575bb24e57235633cfe06c7f4f5232a7000da96a /ranger/core/actions.py
parent8eecaa8a29740a7cadb102df31c0e0c0af0bbe8e (diff)
downloadranger-54e67d04df356389680e547c918805545a9c080c.tar.gz
core.actions: remove useless checks
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 2621abc5..741b847f 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -400,10 +400,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		if movedown:
 			self.move(down=narg)
 
-		if hasattr(self.ui, 'redraw_main_column'):
-			self.ui.redraw_main_column()
-		if hasattr(self.ui, 'status'):
-			self.ui.status.need_redraw = True
+		self.ui.redraw_main_column()
+		self.ui.status.need_redraw = True
 
 	def mark_in_direction(self, val=True, dirarg=None):
 		cwd = self.env.cwd
@@ -504,8 +502,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		if movedown:
 			self.move(down=1)
 
-		if hasattr(self.ui, 'redraw_main_column'):
-			self.ui.redraw_main_column()
+		self.ui.redraw_main_column()
 
 	def tag_remove(self, paths=None, movedown=None):
 		self.tag_toggle(paths=paths, value=False, movedown=movedown)
@@ -552,9 +549,6 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 	# These commands open the built-in pager and set specific sources.
 
 	def display_command_help(self, console_widget):
-		if not hasattr(self.ui, 'open_pager'):
-			return
-
 		try:
 			command = console_widget._get_cmd_class()
 		except:
@@ -585,9 +579,6 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 			self.notify("Could not find manpage.", bad=True)
 
 	def display_log(self):
-		if not hasattr(self.ui, 'open_pager'):
-			return
-
 		pager = self.ui.open_pager()
 		if self.log:
 			pager.set_source(["Message Log:"] + list(self.log))
@@ -595,8 +586,6 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 			pager.set_source(["Message Log:", "No messages!"])
 
 	def display_file(self):
-		if not hasattr(self.ui, 'open_embedded_pager'):
-			return
 		if not self.env.cf or not self.env.cf.is_file:
 			return