diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp index d14a5cea3..38f064cb2 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_color_box.cpp @@ -1003,8 +1003,6 @@ void EditPeerColorBox( return; } state->applying = true; - const auto index = state->index.current(); - const auto emojiId = state->emojiId.current(); Apply(show, peer, { state->index.current(), state->emojiId.current(), diff --git a/Telegram/SourceFiles/history/view/media/history_view_giveaway.cpp b/Telegram/SourceFiles/history/view/media/history_view_giveaway.cpp index 299dba271..6205011a4 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_giveaway.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_giveaway.cpp @@ -93,8 +93,6 @@ MediaInBubble::~MediaInBubble() { QSize MediaInBubble::countOptimalSize() { const auto maxWidth = st::chatGiveawayWidth; - const auto padding = inBubblePadding(); - const auto available = maxWidth - padding.left() - padding.right(); auto top = 0; for (auto &entry : _entries) { @@ -757,7 +755,6 @@ auto GenerateGiveawayResults( not_null data) -> Fn)>)> { return [=](Fn)> push) { - const auto months = data->months; const auto quantity = data->winnersCount; using Data = StickerWithBadgePart::Data; diff --git a/Telegram/SourceFiles/ui/unread_badge.cpp b/Telegram/SourceFiles/ui/unread_badge.cpp index 32321d5fd..375beb5c6 100644 --- a/Telegram/SourceFiles/ui/unread_badge.cpp +++ b/Telegram/SourceFiles/ui/unread_badge.cpp @@ -204,7 +204,6 @@ int PeerBadge::drawGetWidth( } else if (descriptor.premium && peer->isPremium() && peer->session().premiumBadgesShown()) { - const auto id = peer->isChat() ? 0 : peer->emojiStatusId(); const auto iconw = descriptor.premium->width(); const auto iconx = rectForName.x() + qMin(nameWidth, rectForName.width() - iconw);