Commit c3b253f4 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Drop unused method

Summary: It's not used anywhere

Test Plan: builds

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26598
parent 70025150
......@@ -38,7 +38,6 @@
#include <KAuthAction>
#include <KIdleTime>
#include <KLocalizedString>
#include <KMessageBox>
#include <KNotification>
#include <KActivities/Consumer>
......@@ -480,17 +479,6 @@ void Core::onDeviceRemoved(const QString &udi)
m_batteriesCharged.remove(udi);
}
void Core::emitNotification(const QString &evid, const QString &message, const QString &iconname)
{
if (!iconname.isEmpty()) {
KNotification::event(evid, message, QIcon::fromTheme(iconname).pixmap(48,48),
nullptr, KNotification::CloseOnTimeout, QStringLiteral("powerdevil"));
} else {
KNotification::event(evid, message, QPixmap(),
nullptr, KNotification::CloseOnTimeout, QStringLiteral("powerdevil"));
}
}
void Core::emitNotification(const QString &eventId, const QString &title, const QString &message, const QString &iconName)
{
KNotification::event(eventId, title, message, iconName, nullptr, KNotification::CloseOnTimeout, QStringLiteral("powerdevil"));
......
......@@ -60,8 +60,6 @@ public:
void reloadProfile(int state);
void emitNotification(const QString &evid, const QString &message = QString(),
const QString &iconname = QString());
void emitRichNotification(const QString &evid, const QString &title, const QString &message = QString());
void emitNotification(const QString &eventId, const QString &title, const QString &message, const QString &iconName);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment