Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
PR #21334.
  • Loading branch information
Chocobo1 authored Sep 16, 2024
1 parent 23f7275 commit 4555a46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/gui/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

#include <QApplication>
#include <QDesktopServices>
#include <QIcon>
#include <QPixmap>
#include <QPixmapCache>
#include <QPoint>
Expand All @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions src/gui/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

#include "base/pathfwd.h"

class QIcon;
class QPixmap;
class QPoint;
class QSize;
Expand All @@ -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);
Expand Down

0 comments on commit 4555a46

Please sign in to comment.