From 0b4986b47adbde43f5e1132d0f543eb800d0d34c Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 15 Apr 2025 20:14:04 +0400 Subject: [PATCH] Fix build on Windows. --- .../dialogs/ui/dialogs_top_bar_suggestion_content.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp index d08ffae49c..263a1ccb49 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp @@ -63,8 +63,6 @@ void TopBarSuggestionContent::setRightIcon(RightIcon icon) { void TopBarSuggestionContent::draw(QPainter &p) { const auto kLinesForPhoto = 3; - const auto rightPhotoSize = _titleSt.font->ascent * kLinesForPhoto; - const auto rightPhotoPlaceholder = _titleSt.font->height * kLinesForPhoto; const auto r = Ui::RpWidget::rect(); p.fillRect(r, st::historyPinnedBg); @@ -177,9 +175,6 @@ void TopBarSuggestionContent::paintEvent(QPaintEvent *) { } rpl::producer TopBarSuggestionContent::desiredHeightValue() const { - const auto kLinesForPhoto = 3; - const auto rightPhotoSize = _titleSt.font->ascent * kLinesForPhoto; - const auto rightPhotoPlaceholder = _titleSt.font->height * kLinesForPhoto; return rpl::combine( _lastPaintedContentTop.value(), _lastPaintedContentLineAmount.value()