summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-04-06 23:08:29 +0200
committerhut <hut@lepus.uberspace.de>2016-04-06 23:08:29 +0200
commit8a8caa40b0273186b0cdf8f8107fa56c2f82a017 (patch)
treef8338d5248ea68258fcfbc3d8c4fec01d7834661
parentdca32e29fd3df1ccb3b5cbcf3e39facbd70bb634 (diff)
downloadranger-8a8caa40b0273186b0cdf8f8107fa56c2f82a017.tar.gz
Revert "core.linemode: Implement ModificationTimeLinemode"
This reverts commit 94ce103247332a8ad56bb41a7245546f824971c3.
-rw-r--r--ranger/container/fsobject.py3
-rw-r--r--ranger/core/linemode.py11
2 files changed, 1 insertions, 13 deletions
diff --git a/ranger/container/fsobject.py b/ranger/container/fsobject.py
index 1d91aff8..db6772ac 100644
--- a/ranger/container/fsobject.py
+++ b/ranger/container/fsobject.py
@@ -79,8 +79,7 @@ class FileSystemObject(FileManagerAware, SettingsAware):
     _linemode = DEFAULT_LINEMODE
     linemode_dict = dict(
         (linemode.name, linemode()) for linemode in
-        [DefaultLinemode, TitleLinemode, PermissionsLinemode, FileInfoLinemode,
-         ModificationTimeLinemode]
+        [DefaultLinemode, TitleLinemode, PermissionsLinemode, FileInfoLinemode]
     )
 
     def __init__(self, path, preload=None, path_is_abs=False, basename_is_rel_to=None):
diff --git a/ranger/core/linemode.py b/ranger/core/linemode.py
index d3aff064..76e8f7cc 100644
--- a/ranger/core/linemode.py
+++ b/ranger/core/linemode.py
@@ -102,14 +102,3 @@ class FileInfoLinemode(LinemodeBase):
             return fileinfo
         else:
             raise NotImplementedError
-
-
-class ModificationTimeLinemode(LinemodeBase):
-    name = "mtime"
-
-    def filetitle(self, file, metadata):
-        import time
-        return "%s %s" % (time.ctime(file.stat.st_mtime), file.relative_path)
-
-    def infostring(self, file, metadata):
-        return ""