Fixed Klocwork issues
[platform/framework/native/appfw.git] / src / security / FSecPrivilegeInfo.cpp
index c48b1fe..16f32f9 100755 (executable)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
 #include "FSec_PrivilegeInfoImpl.h"
 
 using namespace Tizen::Base;
-using namespace Tizen::Base::Collection;
 using namespace Tizen::Security;
 
 namespace Tizen { namespace Security
 {
 
-_PrivilegeInfoImpl* PrivilegeInfo::__pPrivilegeInfoImpl = null;
 
 PrivilegeInfo::PrivilegeInfo(void)
        : __pImpl(null)
@@ -45,7 +42,7 @@ PrivilegeInfo::PrivilegeInfo(void)
 
 PrivilegeInfo::~PrivilegeInfo(void)
 {
-
+       delete __pImpl;
 }
 
 result
@@ -97,38 +94,4 @@ PrivilegeInfo::GetDescription(void) const
        return __pImpl->GetDescription();
 }
 
-
-
-String
-PrivilegeInfo::GetName(const String& privilege)
-{
-       String name;
-
-       if (__pPrivilegeInfoImpl == null)
-       {
-               __pPrivilegeInfoImpl = _PrivilegeInfoImpl::GetInstance();
-       }
-       SysTryReturn(NID_SEC, __pPrivilegeInfoImpl != null, name, E_SYSTEM, "An unexpected system error occurred.");
-
-       name = __pPrivilegeInfoImpl->GetName(privilege);
-
-       return name;
-}
-
-String
-PrivilegeInfo::GetDescription(const String& privilege)
-{
-       String description;
-
-       if (__pPrivilegeInfoImpl == null)
-       {
-               __pPrivilegeInfoImpl = _PrivilegeInfoImpl::GetInstance();
-       }
-       SysTryReturn(NID_SEC, __pPrivilegeInfoImpl != null, description, E_SYSTEM, "An unexpected system error occurred.");
-
-       description = __pPrivilegeInfoImpl->GetDescription(privilege);
-
-       return description;
-}
-
 }} // Tizen::Security