From 04b5f1913ec2af69e4ebd5c37520c77803f1a92f Mon Sep 17 00:00:00 2001 From: Sunghyun Kwon Date: Mon, 10 Dec 2012 16:09:42 +0900 Subject: [PATCH] Delete sd-daemon api --- email-ipc/email-socket/email-ipc-socket.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/email-ipc/email-socket/email-ipc-socket.c b/email-ipc/email-socket/email-ipc-socket.c index c85d11f..678693a 100755 --- a/email-ipc/email-socket/email-ipc-socket.c +++ b/email-ipc/email-socket/email-ipc-socket.c @@ -38,8 +38,6 @@ #include #include -#include - EXPORT_API bool emipc_init_email_socket(int *fd) { bool ret = true; @@ -203,15 +201,6 @@ EXPORT_API int emipc_accept_email_socket(int fd) EXPORT_API int emipc_open_email_socket(int fd, const char *path) { EM_DEBUG_FUNC_BEGIN("path [%s]", path); - int sock_fd = 0; - - if (strcmp(path, EM_SOCKET_PATH) == 0 && - sd_listen_fds(1) == 1 && - sd_is_socket_unix(SD_LISTEN_FDS_START, SOCK_STREAM, -1, EM_SOCKET_PATH, 0) > 0) { - close(fd); - sock_fd = SD_LISTEN_FDS_START + 0; - return sock_fd; - } if (!path || strlen(path) > 108) { EM_DEBUG_LOG("Path is null"); -- 2.7.4