Skip to content

Commit

Permalink
remove method
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmexican committed Aug 19, 2024
1 parent 3884064 commit c582cfd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/emoji_data_manager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -152,22 +152,6 @@ namespace Mingle {
return batch;
}

private Gee.HashMap<string, EmojiData?> create_emoji_data_map () {
Gee.HashMap<string, EmojiData?> emoji_data_map = new Gee.HashMap<string, EmojiData?> ();
Json.Object data_object = root_object.get_object_member ("data");
foreach (string emoji_codepoint in data_object.get_members ()) {
Json.Object emoji_object = data_object.get_object_member (emoji_codepoint);
EmojiData emoji_data = EmojiData ();
emoji_data.alt = emoji_object.get_string_member ("alt");
emoji_data.keywords = emoji_object.get_array_member ("keywords");
emoji_data.emoji_codepoint = emoji_codepoint;
emoji_data.gboard_order = (int) emoji_object.get_int_member ("gBoardOrder");
emoji_data.combinations = populate_combinations (emoji_object.get_object_member ("combinations"));
emoji_data_map[emoji_codepoint] = emoji_data;
}
return emoji_data_map;
}

private Gee.HashMap<string, Gee.List<EmojiCombination?>> populate_combinations (Json.Object combinations_object) {
var combinations_map = new Gee.HashMap<string, Gee.List<EmojiCombination?>> ();
foreach (string other_emoji_codepoint in combinations_object.get_members ()) {
Expand Down

0 comments on commit c582cfd

Please sign in to comment.