summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-18 18:26:19 +0200
committerhut <hut@lavabit.com>2010-04-18 18:26:19 +0200
commitb11c671fb570757ca895d1f5b60f68a895bde9de (patch)
tree679517fa755fdd4e90aecffb806ec6754c855f0f /ranger
parentdb33fb09410af685839816ce26c13167aedcfda3 (diff)
downloadranger-b11c671fb570757ca895d1f5b60f68a895bde9de.tar.gz
removed code for backwards compatibilty
Diffstat (limited to 'ranger')
-rw-r--r--ranger/api/options.py12
-rw-r--r--ranger/core/actions.py36
-rw-r--r--ranger/gui/widgets/pager.py4
-rw-r--r--ranger/shared/settings.py17
4 files changed, 0 insertions, 69 deletions
diff --git a/ranger/api/options.py b/ranger/api/options.py
index 4748823d..61026a4a 100644
--- a/ranger/api/options.py
+++ b/ranger/api/options.py
@@ -17,15 +17,3 @@ import re
 from re import compile as regexp
 from ranger import colorschemes as allschemes
 from ranger.gui import color
-
-class AttrToString(object):
-	"""
-	Purely for compatibility to 1.0.3.
-	"""
-	def __getattr__(self, attr):
-		print("NOTE: your configuration is out of date.")
-		print("instead of this: colorscheme = colorschemes." + attr)
-		print("please use a string: colorscheme = \"" + attr + "\"")
-		return attr
-
-colorschemes = AttrToString()
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index c87021bc..5b18fae4 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -33,42 +33,6 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 	search_forward = False
 
 	# --------------------------
-	# -- Backwards Compatibility
-	# --------------------------
-	# All methods defined here are just for backwards compatibility,
-	# allowing old configuration files to work with newer versions.
-	# You can delete them and they should change nothing if you use
-	# an up-to-date configuration file.
-
-	def dummy(self, *args, **keywords):
-		"""For backwards compatibility only."""
-
-	handle_mouse = resize = dummy
-
-	def move_left(self, narg=1):
-		"""Enter the parent directory"""
-		self.move(left=1, narg=narg)
-
-	def move_right(self, narg=None):
-		"""Enter the current directory or execute the current file"""
-		self.move(right=1, narg=narg)
-
-	def move_pointer(self, relative=0, absolute=None, narg=None):
-		"""Move the pointer down by <relative> or to <absolute>"""
-		dct = dict(down=relative, narg=narg)
-		if absolute is not None:
-			dct['to'] = absolute
-		self.move(**dct)
-
-	def move_pointer_by_pages(self, relative):
-		"""Move the pointer down by <relative> pages"""
-		self.move(down=relative, pages=True)
-
-	def move_pointer_by_percentage(self, relative=0, absolute=None, narg=None):
-		"""Move the pointer down to <absolute>%"""
-		self.move(to=absolute, percentage=True, narg=narg)
-
-	# --------------------------
 	# -- Basic Commands
 	# --------------------------
 
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index 85022a01..00f3ec78 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -41,10 +41,6 @@ class Pager(Widget):
 		self.markup = None
 		self.lines = []
 
-	def move_horizontal(self, *a, **k):
-		"""For compatibility"""
-		self.fm.notify("Your keys.py is out of date. Can't scroll!", bad=True)
-
 	def open(self):
 		self.scroll_begin = 0
 		self.markup = None
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py
index df97238f..16167fe4 100644
--- a/ranger/shared/settings.py
+++ b/ranger/shared/settings.py
@@ -50,12 +50,6 @@ ALLOWED_SETTINGS = {
 }
 
 
-COMPAT_MAP = {
-	'sort_reverse': 'reverse',
-	'sort_directories_first': 'directories_first',
-}
-
-
 class SettingObject(SignalDispatcher):
 	def __init__(self):
 		SignalDispatcher.__init__(self)
@@ -153,17 +147,6 @@ class SettingsAware(object):
 			else:
 				settings._setting_sources.append(my_options)
 
-				# For backward compatibility:
-				for new, old in COMPAT_MAP.items():
-					try:
-						setattr(my_options, new, getattr(my_options, old))
-						print("Warning: the option `{0}'"\
-								" was renamed to `{1}'\nPlease update"\
-								" your configuration file soon." \
-								.format(old, new))
-					except AttributeError:
-						pass
-
 		from ranger.defaults import options as default_options
 		settings._setting_sources.append(default_options)
 		assert all(hasattr(default_options, setting) \
34ed351dc9007f8311'>^
b4934e42 ^
2c1d2db0 ^
291ca616 ^
50845f37 ^
039c03ef ^
af6658b3 ^
efe2d7a3 ^
f0df3fa5 ^
4be8b401 ^



d955e3f0 ^
75013dc7 ^
67bb838c ^
a808a661 ^
bba8d293 ^
2a64495f ^
5e449699 ^
fc486c60 ^
7b04e507 ^
0268e3c3 ^
dd4a4145 ^
6f43de0a ^




fca1fc4f ^
f70ee6b2 ^
0db4c9b2 ^
b2d63ef5 ^
291ca616 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65