1
mirror of https://github.com/qbittorrent/qBittorrent synced 2024-11-12 10:30:24 +01:00

Remove unused function

PR #21334.
This commit is contained in:
Chocobo1 2024-09-16 18:10:13 +08:00 committed by GitHub
parent 23f7275bd5
commit 4555a46e5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 10 deletions

View File

@ -39,7 +39,6 @@
#include <QApplication>
#include <QDesktopServices>
#include <QIcon>
#include <QPixmap>
#include <QPixmapCache>
#include <QPoint>
@ -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);

View File

@ -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);