Remove unused variable 00/279100/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 2 Aug 2022 00:35:48 +0000 (09:35 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 2 Aug 2022 01:18:11 +0000 (10:18 +0900)
WAYLAND_DISPLAY is not meant to be used to create wayland socket.

Change-Id: I3eb9b9aab1cf4cd1daf0f188c36447547af405d3

src/headless_server.c

index 83898e45b6c1fd2f898f1f93d5f73b3718340154..1de6e3815d9fb4035ccf86e00542131d6c8768f3 100644 (file)
@@ -93,7 +93,6 @@ int
 main(int argc, char *argv[])
 {
        headless_server_t server = { 0, };
-       const char *socket_name = NULL;
        bool ret;
        tbm_bufmgr bufmgr = NULL;
 
@@ -106,11 +105,6 @@ main(int argc, char *argv[])
                ds_log_init(DS_INF, handle_ds_log);
        }
 
-       socket_name = getenv("WAYLAND_DISPLAY");
-
-       if (!socket_name)
-               socket_name = "wayland-0";
-
        if (!getenv("XDG_RUNTIME_DIR"))
                setenv("XDG_RUNTIME_DIR", "/run", 1);