syncmlfw/dm/settings/src/NSmlDMResourceProfiles.cpp
branchRCL_3
changeset 76 3cdbd92ee07b
parent 62 19bba8228ff0
--- a/syncmlfw/dm/settings/src/NSmlDMResourceProfiles.cpp	Wed Sep 15 13:08:27 2010 +0300
+++ b/syncmlfw/dm/settings/src/NSmlDMResourceProfiles.cpp	Wed Oct 13 15:30:06 2010 +0300
@@ -18,11 +18,9 @@
 
 
 // INCLUDE FILES
-#include <featmgr.h>
-#include <centralrepository.h>
 #include "nsmldmsettings.h"
 #include "NSmlDMResourceProfile.h"
-#include "DevManInternalCRKeys.h"
+#include <featmgr.h>
 const TInt KNSmlDmBluetoothType = 0x101F99F1;
 // ----------------------------------------------------------
 // CNSmlDMResourceProfiles implementation 
@@ -79,8 +77,7 @@
 	{
 	RemoveDuplicateEntry();
 	RemoveObexEntryL();
-	TInt count = iProfileArray->Count();
-	for ( TInt i = 0; i < count ; i++ )
+	for ( TInt i = 0; i < iProfileArray->Count(); i++ )
 		{
 		CNSmlDMProfile* profile = iSettings->CreateProfileL();
 		CleanupStack::PushL( profile );
@@ -88,14 +85,6 @@
 		profile->SaveL();
 		CleanupStack::PopAndDestroy(); // profile
 		}
-    CRepository* centrep = NULL;
-    TRAPD( err, centrep = CRepository::NewL(KCRUidDeviceManagementInternalKeys));  
-    if (err==KErrNone ) 
-    {
-        TInt err = centrep->Set( KMaxFactoryDMProfileId , count-1 );
-        delete centrep;
-        centrep = NULL;
-		}
 	}
 
 // ----------------------------------------------------------