Elm_Config: remove Evil functions as home is anyway set on Windows

This commit is contained in:
Vincent Torri 2015-07-22 16:18:44 +02:00 committed by Tom Hacohen
parent 64ecef597d
commit e62ded189d
1 changed files with 0 additions and 11 deletions

View File

@ -2,10 +2,6 @@
# include "elementary_config.h"
#endif
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
#include <Elementary.h>
#include "elm_priv.h"
#include <pwd.h>
@ -546,12 +542,6 @@ _elm_config_user_dir_snprintf(char *dst,
size_t user_dir_len = 0, off = 0;
va_list ap;
#ifdef _WIN32
home = evil_homedir_get();
user_dir_len = eina_str_join_len
(dst, size, '/', home, strlen(home),
ELEMENTARY_BASE_DIR, sizeof(ELEMENTARY_BASE_DIR) - 1);
#else
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
if (getuid() == geteuid())
#endif
@ -598,7 +588,6 @@ _elm_config_user_dir_snprintf(char *dst,
ELEMENTARY_BASE_DIR, sizeof(ELEMENTARY_BASE_DIR) - 1);
#endif
}
#endif
#endif
off = user_dir_len + 1;