remove redundant local static HashMapProviderT and ComparerT
authorjungmin76.park <jungmin76.park@samsung.com>
Tue, 6 Aug 2013 12:36:06 +0000 (21:36 +0900)
committerjungmin76.park <jungmin76.park@samsung.com>
Tue, 6 Aug 2013 12:39:11 +0000 (21:39 +0900)
Change-Id: I779d4e3373dbcdabb377dd2d917342f1f6659543
Signed-off-by: jungmin76.park <jungmin76.park@samsung.com>
src/FShell_AppContext.cpp
src/FShell_AppWidgetManagerService.cpp

index fc03aa1..5948eaa 100644 (file)
@@ -59,9 +59,7 @@ _AppContext::_AppContext(const AppId& appId)
        result r = __pPendingEventList->Construct();
        SysTryReturnVoidResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct.");
 
-       static __HashMapDefaultProviderT <String> strHashCodeProvider;
-       static ComparerT <String> strComparer;
-       r = __appWidgetContextList.Construct(0, 0, strHashCodeProvider, strComparer);
+       r = __appWidgetContextList.Construct();
        SysTryReturnVoidResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct.");
 }
 
index 65fe7ba..6ea0997 100644 (file)
@@ -101,16 +101,13 @@ AppWidgetManagerService::CreateInstance(const char* pCoreDaemonId)
 result
 AppWidgetManagerService::Construct(const char* pCoreDaemonId)
 {
+       result r = __appContextList.Construct();
+       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct.");
+
        _AppWidgetManagerStub::StartIpcServer();
 
        SettingInfo::AddSettingEventListener(*this);
 
-       static __HashMapDefaultProviderT <String> strHashCodeProvider;
-       static ComparerT <String> strComparer;
-
-       result r = __appContextList.Construct(0, 0, strHashCodeProvider, strComparer);
-       SysTryReturnResult(NID_SHELL, !IsFailed(r), E_SYSTEM, "Failed to execute Construct.");
-
        return InitializeCoreDaemonEventReceiver(pCoreDaemonId);
 }