remove unnecessary IsPassword function 63/38063/1
authorSoohye Shin <soohye.shin@samsung.com>
Fri, 10 Apr 2015 10:03:25 +0000 (19:03 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Fri, 10 Apr 2015 10:03:25 +0000 (19:03 +0900)
Change-Id: Icfe7762716fda27d6a40db7f487a3645802f2e40
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/engine/include/EngineUBarItem.h
src/engine/src/EngineUBarItem.cpp

index cc8f8b2..d31b3f9 100644 (file)
@@ -40,7 +40,6 @@ public:
        CEngineUBarItem(CEngine *eng);
        virtual ~CEngineUBarItem();
 
-       bool IsPassword(const char *password);
        bool ChangeUser(const char *password);
        bool Update(const char *icon, const char *password);
 
index 970f19b..25c8438 100644 (file)
@@ -46,33 +46,6 @@ CEngineUBarItem::~CEngineUBarItem()
 }
 
 
-bool CEngineUBarItem::IsPassword(const char *password)
-{
-       ASSERT(m);
-       ASSERT(password);
-
-       GumUser *user;
-       const char *_password;
-       bool r;
-
-       r = false;
-       user = gum_user_get_by_name_sync(Str(VSTR_NAME), FALSE);
-       if (!user) {
-               _ERR("failed to get user");
-               return false;
-       }
-
-       g_object_get(G_OBJECT(user), GUM_ATTR_PASSWORD, &_password, NULL);
-
-       if (!strcmp(password, _password))
-               r = true;
-
-       g_object_unref(user);
-
-       return r;
-}
-
-
 bool CEngineUBarItem::ChangeUser(const char *password)
 {
        ASSERT(m);