diff --git a/src/model/status.cpp b/src/model/status.cpp index 0ed5b991a..189c03a8e 100644 --- a/src/model/status.cpp +++ b/src/model/status.cpp @@ -28,13 +28,6 @@ namespace Status { - QPixmap getIconPixmap(QString path, uint32_t w, uint32_t h) - { - QPixmap pix(w, h); - pix.load(path); - return pix; - } - QString getTitle(Status status) { switch (status) { @@ -54,24 +47,6 @@ namespace Status return QStringLiteral(""); } - Status getFromString(QString status) - { - if (status == QStringLiteral("online")) - return Status::Online; - else if (status == QStringLiteral("away")) - return Status::Away; - else if (status == QStringLiteral("busy")) - return Status::Busy; - else if (status == QStringLiteral("offline")) - return Status::Offline; - else if (status == QStringLiteral("blocked")) - return Status::Blocked; - else { - assert(false); - return Status::Offline; - } - } - QString getIconPath(Status status, bool event) { const QString eventSuffix = event ? QStringLiteral("_notification") : QString(); diff --git a/src/model/status.h b/src/model/status.h index feffca9fe..21958957d 100644 --- a/src/model/status.h +++ b/src/model/status.h @@ -36,9 +36,7 @@ namespace Status }; QString getIconPath(Status status, bool event = false); - QPixmap getIconPixmap(QString path, uint32_t w, uint32_t h); QString getTitle(Status status); - Status getFromString(QString status); } #endif // STATUS_H