From: INSUN PYO Date: Sun, 19 Aug 2018 22:57:23 +0000 (+0900) Subject: Remove unused code. X-Git-Tag: submit/tizen/20180819.230035^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=061bcf93b81faa0048838de08dfb85a4b54d2bb2;p=platform%2Fcore%2Fsystem%2Fsession-utils.git Remove unused code. Signed-off-by: INSUN PYO Change-Id: Ib0fa4bbbd15c91b6ae453f68d3d0cdebf9bbfcd0 --- diff --git a/src/systemd-user-helper/systemd-user-helper.c b/src/systemd-user-helper/systemd-user-helper.c index bf34928..6531447 100644 --- a/src/systemd-user-helper/systemd-user-helper.c +++ b/src/systemd-user-helper/systemd-user-helper.c @@ -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;