[Pkg-owncloud-commits] [owncloud-client] 66/498: Remove dead code

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit bfba6f752c52cb95a316836184109641af825618
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Tue May 5 10:23:59 2015 +0200

    Remove dead code
---
 src/gui/application.cpp | 24 ------------------------
 src/gui/application.h   |  5 -----
 2 files changed, 29 deletions(-)

diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index 5898d76..6ab33ad 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -472,30 +472,6 @@ void Application::setHelp()
     _helpOnly = true;
 }
 
-#if defined(Q_OS_WIN) && QT_VERSION < QT_VERSION_CHECK(5,0,0)
-bool Application::winEventFilter(MSG *pMsg, long *result)
-{
-    if (pMsg->message == WM_POWERBROADCAST) {
-        switch(pMsg->wParam) {
-        case PBT_APMPOWERSTATUSCHANGE:
-            qDebug() << "WM_POWERBROADCAST: Power state changed";
-            break;
-        case PBT_APMSUSPEND:
-            qDebug() << "WM_POWERBROADCAST: Entering low power state";
-            break;
-        case PBT_APMRESUMEAUTOMATIC:
-            qDebug() << "WM_POWERBROADCAST: Resuming from low power state";
-            break;
-        default:
-            break;
-        }
-        return true;
-    }
-
-    return SharedTools::QtSingleApplication::winEventFilter(pMsg, result);
-}
-#endif
-
 QString substLang(const QString &lang)
 {
     // Map the more apropriate script codes
diff --git a/src/gui/application.h b/src/gui/application.h
index 90fee10..3657d79 100644
--- a/src/gui/application.h
+++ b/src/gui/application.h
@@ -67,11 +67,6 @@ protected:
     void enterNextLogFile();
     bool checkConfigExists(bool openSettings);
 
-    // reimplemented
-#if defined(Q_OS_WIN) && QT_VERSION < QT_VERSION_CHECK(5,0,0)
-    bool winEventFilter( MSG * message, long * result );
-#endif
-
 signals:
     void folderRemoved();
     void folderStateChanged(Folder*);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list