0
0
Fork 0

mapping is not needed at this point

This commit is contained in:
Gibheer 2012-11-30 16:22:36 +01:00
parent ec446a53b1
commit f79c5c8394
2 changed files with 0 additions and 16 deletions

View File

@ -13,14 +13,6 @@ module Zero
KEY_HTTP_ACCEPT_LANGUAGE = 'HTTP_ACCEPT_LANGUAGE'
KEY_HTTP_ACCEPT_ENCODING = 'HTTP_ACCEPT_ENCODING'
def self.map=(map)
@@map = map
end
def self.map
@@map ||= {}
end
# create a new accept object
def initialize(environment)
@types = AcceptType.new(environment[KEY_HTTP_ACCEPT])

View File

@ -53,14 +53,6 @@ module Zero
end
[media_type, 0]
end
# map media types to the type given in the map
# @param type [String] the media type
# @return the media type of the mapping or the original
def map_type(type)
return map[type] if map.has_key?(type)
type
end
end
end
end