From 7f5107b96d6b8e36a3e76959354ebf67233a9395 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 29 Dec 2012 16:43:47 +0000 Subject: [PATCH] ok can remove broken ifdefs now. SVN revision: 81883 --- src/bin/config.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/bin/config.c b/src/bin/config.c index 27679476..9de84e11 100644 --- a/src/bin/config.c +++ b/src/bin/config.c @@ -10,25 +10,10 @@ static Eet_Data_Descriptor *edd_base = NULL; -// edbus is segving like crazy now... i need a terminal. disable edbus using -// stuff -#define BROKEN_EDBUS 1 - static const char * _config_home_get(void) { -#ifdef BROKEN_EDBUS - static char buf[4096] = ""; - const char *s; - - if (buf[0]) return buf; - s = getenv("HOME"); - if (!s) s = "/tmp"; - snprintf(buf, sizeof(buf), "%s/.config", s); - return buf; -#else return efreet_config_home_get(); -#endif } void @@ -36,10 +21,8 @@ config_init(void) { Eet_Data_Descriptor_Class eddc; -#ifndef BROKEN_EDBUS elm_need_efreet(); efreet_init(); -#endif eet_eina_stream_data_descriptor_class_set (&eddc, sizeof(eddc), "Config", sizeof(Config)); @@ -107,9 +90,7 @@ config_shutdown(void) eet_data_descriptor_free(edd_base); edd_base = NULL; } -#ifndef BROKEN_EDBUS efreet_shutdown(); -#endif } void