From 4e88ea970e6aa2e8a5c79db5f2fc31568b5b91b1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 29 Jan 2022 12:47:20 +0300 Subject: [PATCH] Fix build with GCC. --- Telegram/SourceFiles/api/api_updates.cpp | 3 --- Telegram/SourceFiles/history/history_widget.cpp | 1 - Telegram/SourceFiles/history/view/media/history_view_gif.cpp | 1 - Telegram/SourceFiles/overview/overview_layout.cpp | 2 -- 4 files changed, 7 deletions(-) diff --git a/Telegram/SourceFiles/api/api_updates.cpp b/Telegram/SourceFiles/api/api_updates.cpp index f2f3ea1f50..fcdefb2473 100644 --- a/Telegram/SourceFiles/api/api_updates.cpp +++ b/Telegram/SourceFiles/api/api_updates.cpp @@ -1183,9 +1183,6 @@ void Updates::applyUpdateNoPtsCheck(const MTPUpdate &update) { auto unknownReadIds = base::flat_set(); for (const auto &msgId : d.vmessages().v) { if (const auto item = _session->data().nonChannelMessage(msgId.v)) { - const auto unreadForPeer = item->isUnreadMedia() - || item->isUnreadMention(); - const auto unreadForMe = item->hasUnreadReaction(); if (item->isUnreadMedia() || item->isUnreadMention()) { item->markMediaAndMentionRead(); _session->data().requestItemRepaint(item); diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 3449b35de5..0da0b36bda 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -3425,7 +3425,6 @@ void HistoryWidget::showNextUnreadMention() { void HistoryWidget::showNextUnreadReaction() { const auto msgId = _history->unreadReactions().minLoaded(); - const auto already = (_showAtMsgId == msgId); showHistory(_peer->id, msgId); } diff --git a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp index b7929b451a..011a0d086d 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp @@ -805,7 +805,6 @@ TextState Gif::textState(QPoint point, StateRequest request) const { } const auto outbg = _parent->hasOutLayout(); const auto inWebPage = (_parent->media() != this); - const auto isRound = _data->isVideoMessage(); const auto unwrapped = isUnwrapped(); const auto item = _parent->data(); auto usew = paintw, usex = 0; diff --git a/Telegram/SourceFiles/overview/overview_layout.cpp b/Telegram/SourceFiles/overview/overview_layout.cpp index e52f9950ed..069501369b 100644 --- a/Telegram/SourceFiles/overview/overview_layout.cpp +++ b/Telegram/SourceFiles/overview/overview_layout.cpp @@ -1908,8 +1908,6 @@ void Gif::clipCallback(Media::Clip::Notification notification) { _gif->height()); _gif.reset(); } else { - auto height = st::inlineMediaHeight; - auto frame = countFrameSize(); _gif->start({ .frame = countFrameSize(), .outer = { _width, st::inlineMediaHeight },