mapping is not needed at this point
This commit is contained in:
parent
ec446a53b1
commit
f79c5c8394
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue