From b58c03f0de24cfd3ca5e23bbfcf12baabf0eb24a Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 25 Jun 2024 22:12:46 +0400 Subject: [PATCH] Fix build with Xcode. --- Telegram/SourceFiles/ui/effects/credits_graphics.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/effects/credits_graphics.cpp b/Telegram/SourceFiles/ui/effects/credits_graphics.cpp index 6cd783f89..e8290d56b 100644 --- a/Telegram/SourceFiles/ui/effects/credits_graphics.cpp +++ b/Telegram/SourceFiles/ui/effects/credits_graphics.cpp @@ -298,7 +298,6 @@ PaintRoundImageCallback GenerateCreditsPaintEntryCallback( rpl::single(rpl::empty_value()) | rpl::then( video->owner().session().downloaderTaskFinished() ) | rpl::start_with_next([=] { - using Size = Data::PhotoSize; if (const auto thumbnail = state->view->thumbnail()) { state->imagePtr = thumbnail; } @@ -421,7 +420,6 @@ PaintRoundImageCallback GeneratePaidMediaPaintCallback( Fn)> PaintPreviewCallback( not_null session, const Data::CreditsHistoryEntry &entry) { - using MediaType = Data::CreditsHistoryMediaType; const auto &extended = entry.extended; if (!extended.empty()) { return [=](Fn update) {