iaupdate/IAD/backgroundchecker/src/iaupdatebgmain.cpp
changeset 29 26b6f0522fd8
parent 6 aba6b8104af3
child 66 8b7f4e561641
--- a/iaupdate/IAD/backgroundchecker/src/iaupdatebgmain.cpp	Fri Apr 16 15:05:20 2010 +0300
+++ b/iaupdate/IAD/backgroundchecker/src/iaupdatebgmain.cpp	Mon May 03 12:38:03 2010 +0300
@@ -26,7 +26,6 @@
 // LOCAL FUNCTION PROTOTYPES
 LOCAL_C TInt ThreadStartL();
 LOCAL_C TBool IAUpdateEnabledL();
-LOCAL_C void RemoveExistingSoftNotificationL();
 
 //Const
 _LIT( KBackgroundChecker, "iaupdatebgchecker" );
@@ -70,7 +69,6 @@
     if ( !IAUpdateEnabledL() )
         {
         FLOG("[bgchecker] ThreadStartL() IAUpdate not enabled");
-        RemoveExistingSoftNotificationL();
         return KErrNone;  
         }
     TFullName name;
@@ -110,7 +108,7 @@
     }
 
 // ---------------------------------------------------------------------------
-// IAUpdateEnabledL()
+// IAUpdateEnabledL() 
 // ---------------------------------------------------------------------------
 //
 LOCAL_C TBool IAUpdateEnabledL() 
@@ -138,24 +136,5 @@
     return enabled;        
     }
 
-// ---------------------------------------------------------------------------
-// RemoveExistingSoftNotificationL()
-// ---------------------------------------------------------------------------
-//
-LOCAL_C void RemoveExistingSoftNotificationL() 
-    {
-    FLOG("[bgchecker] RemoveExistingSoftNotificationL() begin");
-    
-    CIAUpdateBGInternalFileHandler* internalFile = CIAUpdateBGInternalFileHandler::NewLC();
-    CIAUpdateBGSoftNotification* softNotification = CIAUpdateBGSoftNotification::NewL( NULL, internalFile );
-    CleanupStack::PushL( softNotification );
-    softNotification->RemoveSoftNotificationL( softNotification->Id() );
-    CleanupStack::PopAndDestroy( softNotification );
-    CleanupStack::PopAndDestroy( internalFile );
-    
-    FLOG("[bgchecker] RemoveExistingSoftNotificationL() end");
-    return;        
-    }
-
 //EOF