diff --git a/ui/emoji_config.cpp b/ui/emoji_config.cpp index 47f76d6..ac96452 100644 --- a/ui/emoji_config.cpp +++ b/ui/emoji_config.cpp @@ -37,13 +37,6 @@ constexpr auto kMaxId = uint32(1 << 8); constexpr auto kScaleForTouchBar = 150; -const auto kSets = { - Set{ 0, 0, 0, "Mac", ":/gui/emoji/set0_preview.webp" }, - Set{ 1, 246, 7'336'383, "Android", ":/gui/emoji/set1_preview.webp" }, - Set{ 2, 206, 5'038'738, "Twemoji", ":/gui/emoji/set2_preview.webp" }, - Set{ 3, 238, 6'992'260, "JoyPixels", ":/gui/emoji/set3_preview.webp" }, -}; - // Right now we can't allow users of Ui::Emoji to create custom sizes. // Any Instance::Instance() can invalidate Universal.id() and sprites. // So all Instance::Instance() should happen before async generations. @@ -527,10 +520,6 @@ void ClearIrrelevantCache() { }); } -std::vector Sets() { - return kSets | ranges::to_vector; -} - int CurrentSetId() { Expects(Universal != nullptr); diff --git a/ui/emoji_config.h b/ui/emoji_config.h index 9256150..e8a8eba 100644 --- a/ui/emoji_config.h +++ b/ui/emoji_config.h @@ -29,18 +29,9 @@ void Clear(); void ClearIrrelevantCache(); -struct Set { - int id = 0; - int postId = 0; - int size = 0; - QString name; - QString previewPath; -}; - // Thread safe, callback is called on main thread. void SwitchToSet(int id, Fn callback); -std::vector Sets(); int CurrentSetId(); bool SetIsReady(int id); rpl::producer<> Updated();