evas cserver client - remove dead if 0'd code

This commit is contained in:
Carsten Haitzler 2017-02-08 19:12:51 +09:00
parent 24e34e19a1
commit 5bb34aa2ce
1 changed files with 0 additions and 22 deletions

View File

@ -127,28 +127,6 @@ _socket_path_set(char *path)
snprintf(buf, sizeof(buf), "/tmp/.evas-cserve2-%x.socket", (int)getuid());
/* FIXME: check we can actually create this socket */
strcpy(path, buf);
#if 0
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
if (getuid() == geteuid())
#endif
{
env = getenv("XDG_RUNTIME_DIR");
if (!env || !env[0])
{
env = eina_environment_home_get();
if (!env || !env[0])
{
env = eina_environment_tmp_get();
if (!env || !env[0])
env = "/tmp";
}
}
snprintf(buf, sizeof(buf), "%s/evas-cserve2-%x.socket", env, getuid());
/* FIXME: check we can actually create this socket */
strcpy(path, buf);
}
#endif
}
static Eina_Bool