emoji picker: minor fixes

This commit is contained in:
Valery Sizov 2015-12-22 17:15:25 +02:00 committed by Valery Sizov
parent dfd76c33d9
commit e5eb700d5e

View file

@ -45,14 +45,6 @@ class AwardEmoji
food_drink: "Food" food_drink: "Food"
}.with_indifferent_access }.with_indifferent_access
def self.positions_by_name(name)
emoji = emojis_json.find do |emoji|
emoji["short_names"].include?(name)
end
[emoji["sheet_x"], emoji["sheet_y"]]
end
def self.normilize_emoji_name(name) def self.normilize_emoji_name(name)
ALIASES[name] || name ALIASES[name] || name
end end