diff --git a/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp b/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp index f78a332d9b..beadbd4c20 100644 --- a/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp +++ b/Telegram/SourceFiles/ui/chat/choose_theme_controller.cpp @@ -259,21 +259,6 @@ void ChooseThemeController::initButtons() { apply->moveToRight(left, 0); }, controls->lifetime()); - const auto changed = [=] { - if (_chosen.isEmpty()) { - return false; - } - const auto now = Ui::Emoji::Find(_peer->themeEmoji()); - if (_chosen == kDisableElement.utf16()) { - return !now; - } - for (const auto &entry : _entries) { - if (entry.id && entry.emoji->text() == _chosen) { - return (now != entry.emoji); - } - } - return false; - }; cancel->setClickedCallback([=] { close(); }); apply->setClickedCallback([=] { if (const auto chosen = findChosen()) {