Remove dummy code for Device/Power/Runtime.
[platform/framework/native/appfw.git] / src / system / FSys_PowerManagerImpl.cpp
index 220e82f..7066202 100644 (file)
@@ -477,16 +477,8 @@ _PowerManagerImpl::RestoreScreenBrightness(void)
        unique_ptr<_IpcClient> pIpcClient (new (std::nothrow) _IpcClient());
        SysTryReturn(NID_SYS, pIpcClient != null, E_OUT_OF_MEMORY, r, "It is failed to create IPC instance.");
 
-//     if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_powermanager") == true)
-       {
-               SysLog(NID_SYS, "PowerManager is serviced by common-service");
-               r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
-       }
-/*     else
-       {
-               r = pIpcClient->Construct(_COMMUNICATION_DISPATCHER_IPC_ID);
-       }
-*/
+       SysLog(NID_SYS, "PowerManager is serviced by common-service");
+       r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
        SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] It failed to create IpcClient", GetErrorMessage(r));
 
        requestMessage.Construct();
@@ -537,16 +529,8 @@ _PowerManagerImpl::SetScreenBrightness(int brightness)
        unique_ptr<_IpcClient> pIpcClient (new (std::nothrow) _IpcClient());
        SysTryReturn(NID_SYS, pIpcClient != null, E_OUT_OF_MEMORY, r, "It is failed to create IPC instance.");
 
-//     if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_powermanager") == true)
-        {
-                SysLog(NID_SYS, "PowerManager is serviced by common-service");
-                r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
-        }
-/*        else
-       {
-               r = pIpcClient->Construct(_COMMUNICATION_DISPATCHER_IPC_ID);
-       }
-*/
+       SysLog(NID_SYS, "PowerManager is serviced by common-service");
+       r = pIpcClient->Construct(POWER_MANAGER_SERVICE_ID);
        SysTryReturn(NID_SYS, r == E_SUCCESS, E_SYSTEM, r, "[%s] It failed to create IpcClient", GetErrorMessage(r));
 
        requestMessage.Construct();