summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2018-11-23 11:12:01 +0000
committerCedric BAIL <cedric@osg.samsung.com>2018-11-28 16:22:14 -0800
commit6c4e49d970ca6046780ba1b9fb226f465d14a497 (patch)
tree2e536d50c5caf948ead30d5371d2a6338da4b4ff
parent30db122db48906d1bcf495b7dda199db23beb7d4 (diff)
downloadefl-6c4e49d970ca6046780ba1b9fb226f465d14a497.tar.gz
elm_config: remove profile name reading logic from data dir
Nothing writes any profile name on profile.cfg inside data dir This patch removes the logic. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7351
-rw-r--r--src/lib/elementary/elm_config.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index bf950e53be..8d2545a170 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -1454,14 +1454,9 @@ _profile_fetch_from_conf(void)
}
}
- for (i = 0; i < 2 && !_use_build_config; i++)
+ if(!_use_build_config)
{
- // user profile
- if (i == 0)
- _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
- // system profile
- else if (i == 1)
- _elm_data_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
+ _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/profile.cfg");
ef = eet_open(buf, EET_FILE_MODE_READ);
if (ef)
{