diff --git a/Telegram/SourceFiles/chat_helpers/ttl_media_layer_widget.cpp b/Telegram/SourceFiles/chat_helpers/ttl_media_layer_widget.cpp index 552b050e07..fae8f0c2d8 100644 --- a/Telegram/SourceFiles/chat_helpers/ttl_media_layer_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/ttl_media_layer_widget.cpp @@ -208,7 +208,6 @@ PreviewWrap::PreviewWrap( _element->width(), _element->height() ).translated(_viewport.topLeft()); - const auto media = _element->media(); _elementInner = _element->innerGeometry().translated( _elementGeometry.topLeft()); update(); diff --git a/Telegram/SourceFiles/core/shortcuts.cpp b/Telegram/SourceFiles/core/shortcuts.cpp index b2190393a4..545c9b55af 100644 --- a/Telegram/SourceFiles/core/shortcuts.cpp +++ b/Telegram/SourceFiles/core/shortcuts.cpp @@ -406,9 +406,9 @@ void Manager::fillDefaults() { set(u"%1+%2"_q.arg(ctrl).arg(index), command); } - auto &&accounts = ranges::views::zip( - kShowAccount, - ranges::views::ints(1, ranges::unreachable)); + //auto &&accounts = ranges::views::zip( + // kShowAccount, + // ranges::views::ints(1, ranges::unreachable)); //for (const auto &[command, index] : accounts) { // set(u"%1+shift+%2"_q.arg(ctrl).arg(index), command); diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index b6f0d414bf..9f2c9290c3 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -1935,7 +1935,6 @@ void Widget::searchMessages(QString query, Key inChat) { const auto inChatChanged = [&] { const auto inPeer = inChat.peer(); const auto inTopic = inChat.topic(); - const auto inSublist = inChat.sublist(); if (!inTopic && _openedForum && inPeer == _openedForum->channel() @@ -2615,7 +2614,6 @@ bool Widget::setSearchInChat( } const auto peer = chat.peer(); const auto topic = chat.topic(); - const auto sublist = chat.sublist(); const auto forum = peer ? peer->forum() : nullptr; if (chat.folder() || (forum && !topic)) { chat = Key(); diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 9cf3ab373f..17fb3257b7 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -981,8 +981,6 @@ Ui::ChatPaintContext HistoryInner::preparePaintContext( const QRect &clip) const { const auto visibleAreaPositionGlobal = mapToGlobal( QPoint(0, _visibleAreaTop)); - const auto visibleAreaPositionLocal = mapFromGlobal( - visibleAreaPositionGlobal); return _controller->preparePaintContext({ .theme = _theme.get(), .clip = clip, diff --git a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp index ca29639ec1..03164193b3 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_gif.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_gif.cpp @@ -71,9 +71,6 @@ int gifMaxStatusWidth(DocumentData *document) { [[nodiscard]] HistoryView::TtlRoundPaintCallback CreateTtlPaintCallback( Fn update) { - const auto iconSize = Size(std::min( - st::historyFileInPause.width(), - st::historyFileInPause.height())); const auto centerMargins = Margins(st::historyFileInPause.width() * 3); const auto renderer = std::make_shared( @@ -144,7 +141,6 @@ Gif::Gif( ? std::make_unique() : nullptr) , _downloadSize(Ui::FormatSizeText(_data->size)) { - auto hasDefaultDocumentLinks = false; if (_data->isVideoMessage() && _parent->data()->media()->ttlSeconds()) { if (_spoiler) { _drawTtl = CreateTtlPaintCallback([=] { repaint(); }); diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp index 2927748995..39ae8087a3 100644 --- a/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp +++ b/Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp @@ -408,7 +408,6 @@ void InlineList::paint( : st->msgServiceBg())->c; } - const auto radius = geometry.height() / 2.; const auto fill = geometry.marginsAdded({ flipped ? bubbleSkip : 0, 0,