Remove unused code. 76/187076/1 accepted/tizen/unified/20180820.060120 submit/tizen/20180819.230035
authorINSUN PYO <insun.pyo@samsung.com>
Sun, 19 Aug 2018 22:57:23 +0000 (07:57 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Sun, 19 Aug 2018 22:57:46 +0000 (07:57 +0900)
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ib0fa4bbbd15c91b6ae453f68d3d0cdebf9bbfcd0

src/systemd-user-helper/systemd-user-helper.c

index bf3492873428cc9c512e1b78dfe092bc80e9cb6a..653144776c4ab279af26620f178ca25242a8fa6b 100644 (file)
@@ -167,38 +167,6 @@ static int container_postprocess(char *username)
        return 0;
 }
 
-static int wait_condition(void)
-{
-       int r;
-       void *h;
-
-       int (*wait_mount_user)(void);
-
-       r = access(LAZYMOUNT_LIB, F_OK);
-       if (r < 0) {
-               fprintf(stderr, "cannot find lazymount module - No support lazymount\n");
-               return 0;
-       }
-
-       h = dlopen(LAZYMOUNT_LIB, RTLD_LAZY);
-       if (!h) {
-               fprintf(stderr, "lazymount module dlopen error\n");
-               return -1;
-       }
-
-       LOAD_SYMBOL(h, wait_mount_user, "wait_mount_user");
-
-       r = wait_mount_user();
-       if (r < 0) {
-               fprintf(stderr, "wait_mout_user failed\n");
-               dlclose(h);
-               return r;
-       }
-
-       dlclose(h);
-       return 0;
-}
-
 static int make_pid_file(int pid, char* user_id)
 {
        FILE *fp;