evas cserve - remove unused if 0'd out code that is misleading my greps

looking for XDG_RUNTIME_DIR usage to lock down for setuid apps... this
msled me... remove it as it's unused.
This commit is contained in:
Carsten Haitzler 2017-02-09 10:23:20 +09:00
parent a90c3ffe80
commit 311ecceeb7
1 changed files with 0 additions and 17 deletions

View File

@ -238,23 +238,6 @@ _socket_path_set(char *path)
/* FIXME: check we can actually create this socket */
strcpy(path, buf);
return;
#if 0
env = getenv("XDG_RUNTIME_DIR");
if (!env || !env[0])
{
env = getenv("HOME");
if (!env || !env[0])
{
env = getenv("TMPDIR");
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 int