skins/AknSkins/srvsrc/AknsSrvSettings.cpp
changeset 42 2398a337fa76
parent 0 05e9090e2422
--- a/skins/AknSkins/srvsrc/AknsSrvSettings.cpp	Tue Feb 02 00:52:22 2010 +0200
+++ b/skins/AknSkins/srvsrc/AknsSrvSettings.cpp	Fri Mar 19 09:48:44 2010 +0200
@@ -35,7 +35,6 @@
 #include <pslninternalcrkeys.h>                 // KThemesWallpaperSlideSetType
 
 //PubSub keys.
-#include <ScreensaverInternalPSKeys.h>
 #include <UsbWatcherInternalPSKeys.h>           // KPSUidUsbWatcher
 #include <usbpersonalityids.h>                  // KUsbPersonalityIdMS
 
@@ -617,8 +616,6 @@
         TCallBack(ThemesRepositoryCallBack, this),
         iThemesRepository);
 
-    User::LeaveIfError(
-        iScreensaverActivationProperty.Attach( KPSUidScreenSaver, KScreenSaverOn ) );
     iScreensaverActivationSubscriber = new (ELeave) CAknsPropertySubscriber(
         TCallBack(SSCallBack, this), iScreensaverActivationProperty );
 
@@ -743,15 +740,7 @@
 //
 TInt CAknsSrvSettings::ScreensaverState() const
     {
-    TInt retValue = KErrNotFound;
-    if ( iScreensaverActivationSubscriber )
-        {
-        iScreensaverActivationProperty.Get(
-            KPSUidScreenSaver,
-            KScreenSaverOn,
-            retValue );
-        }
-    return retValue;
+    return KErrNotFound;
     }
 
 // -----------------------------------------------------------------------------