about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-14 15:47:43 +0200
committerhut <hut@lavabit.com>2010-05-14 15:47:43 +0200
commit90f204e3006a859ab11810f5573451d9d1f94906 (patch)
tree3afc2d22e1711f1f4feaa1c2129a1d70ac372ad0
parent334e81f2188b805d4808eca0c87205096590d166 (diff)
downloadranger-90f204e3006a859ab11810f5573451d9d1f94906.tar.gz
fsobject.fsobject: Removed old/unused code
-rw-r--r--ranger/fsobject/fsobject.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py
index 129bf378..6bb8b6ec 100644
--- a/ranger/fsobject/fsobject.py
+++ b/ranger/fsobject/fsobject.py
@@ -14,10 +14,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 CONTAINER_EXTENSIONS = 'rar zip tar gz bz bz2 tgz 7z iso cab'.split()
-DOCUMENT_EXTENSIONS = 'pdf doc ppt odt'.split()
-DOCUMENT_BASENAMES = 'README TODO LICENSE COPYING INSTALL'.split()
-DOCUMENT_EXTENSIONS = ()
-DOCUMENT_BASENAMES = ()
 
 import stat
 import os
@@ -138,9 +134,7 @@ class FileSystemObject(MimeTypeAware, FileManagerAware):
 		self.image = self._mimetype.startswith('image')
 		self.audio = self._mimetype.startswith('audio')
 		self.media = self.video or self.image or self.audio
-		self.document = self._mimetype.startswith('text') \
-				or (self.extension in DOCUMENT_EXTENSIONS) \
-				or (self.basename in DOCUMENT_BASENAMES)
+		self.document = self._mimetype.startswith('text')
 		self.container = self.extension in CONTAINER_EXTENSIONS
 
 		keys = ('video', 'audio', 'image', 'media', 'document', 'container')