summaryrefslogtreecommitdiffstats
path: root/api/dead/src/handlers/IconResourceHandler.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-09-18 22:53:37 +0200
committerPetr Mrázek <peterix@gmail.com>2016-09-18 22:53:37 +0200
commit69f3ab019d4ef9e28d0c7e3c4ce3a609a6ff0a91 (patch)
treea22a80b987212490371294f53e1f8bd698f1dad5 /api/dead/src/handlers/IconResourceHandler.cpp
parenteb747e08b78d8630413b9bdb3a96108ccfcc2ac8 (diff)
downloadMultiMC-69f3ab019d4ef9e28d0c7e3c4ce3a609a6ff0a91.tar
MultiMC-69f3ab019d4ef9e28d0c7e3c4ce3a609a6ff0a91.tar.gz
MultiMC-69f3ab019d4ef9e28d0c7e3c4ce3a609a6ff0a91.tar.lz
MultiMC-69f3ab019d4ef9e28d0c7e3c4ce3a609a6ff0a91.tar.xz
MultiMC-69f3ab019d4ef9e28d0c7e3c4ce3a609a6ff0a91.zip
NOISSUE delete dead code
Diffstat (limited to 'api/dead/src/handlers/IconResourceHandler.cpp')
-rw-r--r--api/dead/src/handlers/IconResourceHandler.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/api/dead/src/handlers/IconResourceHandler.cpp b/api/dead/src/handlers/IconResourceHandler.cpp
deleted file mode 100644
index b03553fd..00000000
--- a/api/dead/src/handlers/IconResourceHandler.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "IconResourceHandler.h"
-#include <xdgicon.h>
-
-#include <QDir>
-#include <QDebug>
-
-QList<std::weak_ptr<IconResourceHandler>> IconResourceHandler::m_iconHandlers;
-
-IconResourceHandler::IconResourceHandler(const QString &key)
- : m_key(key)
-{
-}
-
-void IconResourceHandler::setTheme(const QString &theme)
-{
- // notify everyone
- for (auto handler : m_iconHandlers)
- {
- std::shared_ptr<IconResourceHandler> ptr = handler.lock();
- if (ptr)
- {
- ptr->setResult(ptr->get());
- }
- }
-}
-
-void IconResourceHandler::init(std::shared_ptr<ResourceHandler> &ptr)
-{
- m_iconHandlers.append(std::dynamic_pointer_cast<IconResourceHandler>(ptr));
- // we always have a result, so lets report it now!
- setResult(get());
-}
-
-QVariant IconResourceHandler::get() const
-{
- return XdgIcon::fromTheme(m_key);
-}