diff --git a/Telegram/SourceFiles/boxes/edit_privacy_box.cpp b/Telegram/SourceFiles/boxes/edit_privacy_box.cpp index e1cbe8e10..f09b10448 100644 --- a/Telegram/SourceFiles/boxes/edit_privacy_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_privacy_box.cpp @@ -59,7 +59,6 @@ void CreateRadiobuttonLock( const auto &icon = st::messagePrivacyLock; const auto size = st::defaultRadio.diameter; const auto image = icon.instance(st::checkboxFg->c); - const auto dimensions = image.size(); p.drawImage(QRectF( (size - icon.width()) / 2., (size - icon.height()) / 2., diff --git a/Telegram/SourceFiles/data/data_lastseen_status.h b/Telegram/SourceFiles/data/data_lastseen_status.h index 4603c5406..a7d0171e2 100644 --- a/Telegram/SourceFiles/data/data_lastseen_status.h +++ b/Telegram/SourceFiles/data/data_lastseen_status.h @@ -82,7 +82,6 @@ public: } [[nodiscard]] static LastseenStatus FromLegacy(int32 value) { - auto result = LastseenStatus(); if (value == -2) { return LastseenStatus::Recently(); } else if (value == -3) { diff --git a/Telegram/SourceFiles/history/view/history_view_about_view.cpp b/Telegram/SourceFiles/history/view/history_view_about_view.cpp index 70fd4a6f5..7627b0fd3 100644 --- a/Telegram/SourceFiles/history/view/history_view_about_view.cpp +++ b/Telegram/SourceFiles/history/view/history_view_about_view.cpp @@ -99,7 +99,6 @@ TextWithEntities PremiumRequiredBox::subtitle() { } ClickHandlerPtr PremiumRequiredBox::createViewLink() { - const auto itemId = _parent->data()->fullId(); return std::make_shared([=](ClickContext context) { const auto my = context.other.value(); if (const auto controller = my.sessionWindow.get()) { @@ -112,8 +111,6 @@ void PremiumRequiredBox::draw( Painter &p, const PaintContext &context, const QRect &geometry) { - const auto padding = (geometry.width() - st::premiumRequiredCircle) / 2; - const auto size = geometry.width() - 2 * padding; p.setBrush(context.st->msgServiceBg()); // ? p.setPen(Qt::NoPen); p.drawEllipse(geometry); diff --git a/Telegram/SourceFiles/ui/boxes/show_or_premium_box.cpp b/Telegram/SourceFiles/ui/boxes/show_or_premium_box.cpp index 0e210cb72..5f00e1b7e 100644 --- a/Telegram/SourceFiles/ui/boxes/show_or_premium_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/show_or_premium_box.cpp @@ -187,7 +187,6 @@ void ShowOrPremiumBox( box.get(), Premium::ButtonGradientStops()); - const auto &st = st::premiumPreviewBox.button; premium->resize(st::showOrShowButton.width, st::showOrShowButton.height); const auto label = CreateChild( @@ -220,4 +219,4 @@ void ShowOrPremiumBox( premium->setClickedCallback(std::move(toPremium)); } -} // namespace Ui \ No newline at end of file +} // namespace Ui diff --git a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp index f9c3b0458..942427c9c 100644 --- a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp +++ b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp @@ -520,8 +520,6 @@ WhenAction::WhenAction( std::move( content ) | rpl::start_with_next([=](WhoReadContent &&content) { - const auto changed = (_content.participants != content.participants) - || (_content.state != content.state); _content = content; refreshText(); refreshDimensions(); @@ -630,12 +628,6 @@ void WhenAction::paint(Painter &p) { } void WhenAction::refreshText() { - const auto usersCount = int(_content.participants.size()); - const auto onlySeenCount = ranges::count( - _content.participants, - QString(), - &WhoReadParticipant::customEntityData); - const auto count = std::max(_content.fullReactionsCount, usersCount); _text.setMarkedText( st::whenReadStyle, { ((_content.state == WhoReadState::Unknown)