Removed emoji sets from lib_ui.

This commit is contained in:
23rd 2020-02-05 13:52:48 +03:00
parent 44c4633684
commit be5ed0053a
2 changed files with 0 additions and 20 deletions

View file

@ -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<Set> Sets() {
return kSets | ranges::to_vector;
}
int CurrentSetId() {
Expects(Universal != nullptr);

View file

@ -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<void(bool)> callback);
std::vector<Set> Sets();
int CurrentSetId();
bool SetIsReady(int id);
rpl::producer<> Updated();