Removed vibration enabling and disabling.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Fri, 30 Jul 2010 09:33:27 +0000 (12:33 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Fri, 30 Jul 2010 09:33:27 +0000 (12:33 +0300)
src/engine/mceprivate.cpp
src/engine/mceprivate.h

index 1816e9a..ae11563 100644 (file)
@@ -55,9 +55,6 @@ MCEPrivate::MCEPrivate(QObject *parent)
                                       SLOT(displayStateError(QDBusError)));
 
     m_touchscreenVibrationEnabled = isTouchscreenVibrationEnabled();
-
-    if (m_touchscreenVibrationEnabled)
-        m_dBusInterface->call(MCE_ENABLE_VIBRATOR);
 }
 
 void MCEPrivate::displayStateChanged(const QDBusMessage &message)
@@ -140,11 +137,3 @@ void MCEPrivate::vibrationFeedback()
         QTimer::singleShot(VIBRATION_TIME, this, SLOT(stopVibration()));
     }
 }
-
-MCEPrivate::~MCEPrivate()
-{
-    qWarning() << __PRETTY_FUNCTION__;
-
-    if (m_touchscreenVibrationEnabled)
-        m_dBusInterface->call(MCE_DISABLE_VIBRATOR);
-}
index b63107a..2c59e33 100644 (file)
@@ -41,18 +41,9 @@ public:
     * @brief Constructor.
     *
     * @param parent QObject
-    *
-    * Enables vibration mode.
     */
     MCEPrivate(QObject *parent);
 
-    /**
-    * @brief Destructor.
-    *
-    * Disables vibration mode.
-    */
-    ~MCEPrivate();
-
 /*******************************************************************************
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/