Merge "Fix a timezone defect." into tizen_2.2
[platform/framework/native/appfw.git] / src / security / FSec_PrivilegeCache.cpp
index b760451..95843d5 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -61,8 +60,6 @@ _PrivilegeCache::Construct(void)
 {
        result r = E_SUCCESS;
 
-       SysLog(NID_SEC, "Enter.");
-
        std::unique_ptr<HashMap> pPrivilegeList(new (std::nothrow) HashMap());
        SysTryReturnResult(NID_SEC, pPrivilegeList != null, E_OUT_OF_MEMORY, "Memory allocation is failed.");
 
@@ -78,7 +75,6 @@ _PrivilegeCache::Construct(void)
        __pPrivilegeList = std::move(pPrivilegeList);
        __pMutex = std::move(pMutex);
 
-       SysLog(NID_SEC, "Exit.");
        return r;
 }
 
@@ -91,8 +87,6 @@ _PrivilegeCache::AddPrivilegeInfo(const _PrivilegeInfo& privilegeInfo)
        std::unique_ptr<_PrivilegeInfo> pPrivilegeInfo(null);
        std::unique_ptr<String> pKey(null);
 
-       SysLog(NID_SEC, "Enter.");
-
        SysTryReturnResult(NID_SEC, privilegeInfo.GetAppId().GetLength() == MAX_APP_ID_SIZE, E_INVALID_ARG, "The argument is invalid.");
 
        pPrivilegeInfo.reset(privilegeInfo.CloneN());
@@ -110,7 +104,6 @@ _PrivilegeCache::AddPrivilegeInfo(const _PrivilegeInfo& privilegeInfo)
        mutexResult = __pMutex->Release();
        SysTryCatch(NID_SEC, mutexResult == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] An unexpected system error occurred.");
 
-       SysLog(NID_SEC, "Exit.");
        return r;
 
 CATCH2:
@@ -118,13 +111,9 @@ CATCH2:
        mutexResult = __pMutex->Release();
        SysTryCatch(NID_SEC, mutexResult == E_SUCCESS, mutexResult = E_SYSTEM, E_SYSTEM, "An unexpected system error occurred.");
 
-
-       SysLog(NID_SEC, "Exit.");
        return r;
 
 CATCH:
-
-       SysLog(NID_SEC, "Exit.");
        return r;
 }
 
@@ -134,8 +123,6 @@ _PrivilegeCache::RemovePrivilegeInfo(const AppId& appId)
        result r = E_SUCCESS;
        result mutextResult = E_SUCCESS;
 
-       SysLog(NID_SEC, "Enter.");
-
        mutextResult = __pMutex->Acquire();
        SysTryReturnResult(NID_SEC, mutextResult == E_SUCCESS, E_SYSTEM, "An unexpected system error occurred.");
 
@@ -154,7 +141,6 @@ _PrivilegeCache::RemovePrivilegeInfo(const AppId& appId)
        mutextResult = __pMutex->Release();
        SysTryReturnResult(NID_SEC, mutextResult == E_SUCCESS, E_SYSTEM, "An unexpected system error occurred.");
 
-       SysLog(NID_SEC, "Exit.");
        return r;
 }
 
@@ -166,7 +152,6 @@ _PrivilegeCache::GetPrivilegeInfoN(const AppId& appId) const
 
        std::unique_ptr<_PrivilegeInfo> pPrivilegeInfo(null);
 
-       SysLog(NID_SEC, "Enter.");
        ClearLastResult();
 
        mutexResult = __pMutex->Acquire();
@@ -197,7 +182,6 @@ _PrivilegeCache::GetPrivilegeInfoN(const AppId& appId) const
                SysLogException(NID_SEC, E_SYSTEM, "[E_SYSTEM] An unexpected system error occurred.");
        }
 
-       SysLog(NID_SEC, "Exit.");
        return pPrivilegeInfo.release();
 }