diff --git a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp index f89933de5..901c1ac15 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_list_widget.cpp @@ -778,8 +778,6 @@ void EmojiListWidget::fillRecent() { void EmojiListWidget::fillRecentFrom(const std::vector &list) { const auto test = session().isTestMode(); const auto owner = &session().data(); - const auto statuses = &owner->emojiStatuses(); - const auto manager = &owner->customEmojiManager(); _recent.clear(); _recent.reserve(list.size()); for (const auto &id : list) { diff --git a/Telegram/SourceFiles/ffmpeg/ffmpeg_frame_generator.cpp b/Telegram/SourceFiles/ffmpeg/ffmpeg_frame_generator.cpp index c6b2fe100..49cc6a92a 100644 --- a/Telegram/SourceFiles/ffmpeg/ffmpeg_frame_generator.cpp +++ b/Telegram/SourceFiles/ffmpeg/ffmpeg_frame_generator.cpp @@ -271,7 +271,6 @@ void FrameGenerator::Impl::jumpToStart() { if ((result = av_seek_frame(_format.get(), _streamId, 0, AVSEEK_FLAG_BYTE)) < 0) { if ((result = av_seek_frame(_format.get(), _streamId, 0, AVSEEK_FLAG_FRAME)) < 0) { if ((result = av_seek_frame(_format.get(), _streamId, 0, 0)) < 0) { - char err[AV_ERROR_MAX_STRING_SIZE] = { 0 }; LOG(("Webm Error: Unable to av_seek_frame() to the start, ") + wrapError(result)); return; } diff --git a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp index d079cf8ab..6eedfc271 100644 --- a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp @@ -2213,8 +2213,6 @@ void ListWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { : _overElement ? _overElement->data().get() : nullptr; - const auto hasWhoReactedItem = overItem - && Api::WhoReactedExists(overItem, Api::WhoReactedList::All); const auto clickedReaction = link ? link->property( kReactionsCountEmojiProperty).value() diff --git a/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp b/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp index 47d1f851b..fb4e09457 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp @@ -404,8 +404,6 @@ TextState UnwrappedMedia::textState(QPoint point, StateRequest request) const { } } - auto pixLeft = usex + (usew - _contentSize.width()) / 2; - auto pixTop = (minHeight() - _contentSize.height()) / 2; // Link of content can be nullptr (e.g. sticker without stickerpack). // So we have to process it to avoid overriding the previous result. if (_content->link() && inner.contains(point)) { diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp index fee206f3c..bc8a26cd3 100644 --- a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp +++ b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp @@ -186,7 +186,6 @@ int Selector::countSkipLeft() const { const auto addedToMax = _reactions.customAllowed || _reactions.morePremiumAvailable; const auto max = recentCount() + (addedToMax ? 1 : 0); - const auto width = max * _size; return std::max( (st::reactStripMinWidth - (max * _size)) / 2, st::reactStripSkip); diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_strip.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_strip.cpp index e9cae9758..3c21326bf 100644 --- a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_strip.cpp +++ b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_strip.cpp @@ -39,20 +39,6 @@ constexpr auto kHoverScale = 1.24; }); } -[[nodiscard]] std::shared_ptr CreateIconSnapshot( - not_null document, - not_null existing) { - const auto frame = existing->frame(); - return frame.isNull() - ? CreateIcon( - document->activeMediaView().get(), - existing->width()) - : std::make_shared(Ui::AnimatedIconDescriptor{ - .generator = [=] { return std::make_unique(frame); }, - .sizeOverride = existing->size(), - }); -} - } // namespace Strip::Strip( diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.h b/Telegram/SourceFiles/info/profile/info_profile_cover.h index 63549f41b..9131acf06 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.h +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.h @@ -67,7 +67,7 @@ public: [[nodiscard]] Ui::RpWidget *widget() const; void setPremiumClickCallback(Fn callback); - [[nodiscrd]] rpl::producer<> updated() const; + [[nodiscard]] rpl::producer<> updated() const; void move(int left, int top, int bottom); private: diff --git a/Telegram/SourceFiles/settings/settings_premium.cpp b/Telegram/SourceFiles/settings/settings_premium.cpp index 50f293e65..d35200d52 100644 --- a/Telegram/SourceFiles/settings/settings_premium.cpp +++ b/Telegram/SourceFiles/settings/settings_premium.cpp @@ -548,7 +548,6 @@ void EmojiStatusTopBar::resolveIsColored() { } _isColoredResolved = true; const auto sticker = document->sticker(); - const auto setId = sticker ? sticker->set.id : 0; _isColored = sticker && (sticker->set.id == coloredSetId); } diff --git a/Telegram/SourceFiles/window/window_main_menu.cpp b/Telegram/SourceFiles/window/window_main_menu.cpp index 15ecb9583..bf648265c 100644 --- a/Telegram/SourceFiles/window/window_main_menu.cpp +++ b/Telegram/SourceFiles/window/window_main_menu.cpp @@ -816,9 +816,6 @@ void MainMenu::paintEvent(QPaintEvent *e) { Ui::NameTextOptions()); moveBadge(); } - const auto paused = _controller->isGifPausedAtLeastFor( - GifPauseReason::Layer); - p.setFont(st::semiboldFont); p.setPen(st::windowBoldFg); _name.drawLeftElided(