From 4555a46e5df1b0dbad3ad2edd280f1f815e7ef42 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 16 Sep 2024 18:10:13 +0800 Subject: [PATCH] Remove unused function PR #21334. --- src/gui/utils.cpp | 8 -------- src/gui/utils.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/gui/utils.cpp b/src/gui/utils.cpp index f310c7f269e..91e8d380359 100644 --- a/src/gui/utils.cpp +++ b/src/gui/utils.cpp @@ -39,7 +39,6 @@ #include #include -#include #include #include #include @@ -59,13 +58,6 @@ #include "base/utils/fs.h" #include "base/utils/version.h" -QPixmap Utils::Gui::scaledPixmap(const QIcon &icon, const int height) -{ - Q_ASSERT(height > 0); - - return icon.pixmap(height); -} - QPixmap Utils::Gui::scaledPixmap(const Path &path, const int height) { Q_ASSERT(height >= 0); diff --git a/src/gui/utils.h b/src/gui/utils.h index 46a49c2f679..4d994815b75 100644 --- a/src/gui/utils.h +++ b/src/gui/utils.h @@ -31,7 +31,6 @@ #include "base/pathfwd.h" -class QIcon; class QPixmap; class QPoint; class QSize; @@ -44,7 +43,6 @@ namespace Utils::Gui { bool isDarkTheme(); - QPixmap scaledPixmap(const QIcon &icon, int height); QPixmap scaledPixmap(const Path &path, int height = 0); QSize smallIconSize(const QWidget *widget = nullptr);