From: Wonki Kim Date: Fri, 23 Nov 2018 11:12:01 +0000 (+0000) Subject: elm_config: remove profile name reading logic from data dir X-Git-Tag: submit/tizen/20181205.064917~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54f5cfb2743864a990af75b536a5b5ccd6d41cb1;p=platform%2Fupstream%2Fefl.git 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 Differential Revision: https://phab.enlightenment.org/D7351 --- diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c index 43546dd..f1f0fa2 100644 --- a/src/lib/elementary/elm_config.c +++ b/src/lib/elementary/elm_config.c @@ -1556,14 +1556,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) {