Remove unused codes 81/107981/3
authorSangyoon Jang <s89.jang@samsung.com>
Mon, 2 Jan 2017 06:33:08 +0000 (15:33 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 4 Jan 2017 02:06:53 +0000 (18:06 -0800)
Change-Id: I40115a5b51acec3c9bd458081e127e0ef44702a5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
parser/src/pkgmgr_parser.c

index bcb27b9..52c8328 100644 (file)
 #define _GNU_SOURCE
 #include <dlfcn.h>
 #include <string.h>
-#include <fcntl.h>
 #include <unistd.h>
-#include <time.h>
 #include <string.h>
 #include <libxml/parser.h>
 #include <libxml/xmlschemas.h>
-#include <vconf.h>
 #include <glib.h>
-#include <grp.h>
 
 #include "pkgmgr-info.h"
 #include "pkgmgrinfo_basic.h"
 #include "pkgmgr_parser_db.h"
 #include "pkgmgr_parser_debug.h"
 
-API int __is_admin()
-{
-       uid_t uid = getuid();
-       if ((uid_t)0 == uid)
-               return 1;
-       else
-               return 0;
-}
-
 #define LIBAPPSVC_PATH LIB_PATH "/libappsvc.so.0"
 
 static int __ps_remove_appsvc_db(manifest_x *mfx, uid_t uid)