Remove unnecessary macro
[platform/core/appfw/debug-launchpad.git] / src / common.c
index c6b121a..b64ea5f 100644 (file)
@@ -31,9 +31,7 @@
 #include <unistd.h>
 #include <bundle.h>
 #include <bundle_internal.h>
-#ifdef _APPFW_FEATURE_SOCKET_ACTIVATION
 #include <systemd/sd-daemon.h>
-#endif /* _APPFW_FEATURE_SOCKET_ACTIVATION */
 
 #include "common.h"
 #include "debug_util.h"
@@ -57,7 +55,6 @@ static void __set_sock_option(int fd, int cli)
                setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));
 }
 
-#ifdef _APPFW_FEATURE_SOCKET_ACTIVATION
 static int __create_sock_activation(void)
 {
        int listen_fds;
@@ -72,7 +69,6 @@ static int __create_sock_activation(void)
 
        return -1;
 }
-#endif /* _APPFW_FEATURE_SOCKET_ACTIVATION */
 
 static int __create_server_socket(bool is_app)
 {
@@ -159,9 +155,7 @@ int _create_server_sock(void)
 {
        int fd = -1;
 
-#ifdef _APPFW_FEATURE_SOCKET_ACTIVATION
        fd = __create_sock_activation();
-#endif /* _APPFW_FEATURE_SOCKET_ACTIAVTION */
        if (fd < 0) {
                fd = __create_server_socket(false);
                if (fd < 0) {