Kill unused Pathname #media_type and #sub_type

This commit is contained in:
Joshua Peek
2011-06-01 23:19:11 -05:00
parent c41b9c13cc
commit 68110310a7
2 changed files with 0 additions and 30 deletions

View File

@@ -85,30 +85,6 @@ module Linguist
@mime_type ||= Mime.mime_for(extname)
end
# Public: Get the mime media type
#
# Examples
#
# Pathname.new('index.html').media_type
# # => 'text'
#
# Returns a media type String.
def media_type
mime_type.split('/')[0]
end
# Public: Get the mime sub type
#
# Examples
#
# Pathname.new('index.html').sub_type
# # => 'html'
#
# Returns a media type String.
def sub_type
mime_type.split('/')[1]
end
# Public: Get the Content-Type header
#
# This value is used when serving raw blobs.