Remove Blob#file?

This commit is contained in:
Joshua Peek
2011-05-20 14:52:24 -05:00
parent a94e06ac4d
commit 75cabaa275
2 changed files with 7 additions and 10 deletions

View File

@@ -43,10 +43,6 @@ module Linguist
content_type.include?('octet') || !(text? || image?)
end
def file?
image? || binary?
end
def text?
content_type[/(text|json)/]
end
@@ -62,7 +58,7 @@ module Linguist
end
def viewable?
!file? && !large?
!image? && !binary? && !large?
end
def generated?