From: sebastid Date: Fri, 4 Nov 2005 21:02:12 +0000 (+0000) Subject: Remove unused variable. X-Git-Tag: submit/efl/20131021.015651~14565 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32be5dcf05e2bdf02fb8b76e352315adeabc277b;p=platform%2Fupstream%2Fenlightenment.git Remove unused variable. SVN revision: 18292 --- diff --git a/src/bin/e_widget_iconsel.c b/src/bin/e_widget_iconsel.c index 66eefe6..c00a04d 100644 --- a/src/bin/e_widget_iconsel.c +++ b/src/bin/e_widget_iconsel.c @@ -188,7 +188,7 @@ _e_wid_activate_hook(Evas_Object *obj) wd = e_widget_data_get(obj); dia = e_file_dialog_new(wd->con); - if(!dia) return; + if (!dia) return; e_file_dialog_title_set(dia, "Select File"); e_file_dialog_select_callback_add(dia, _e_wid_select_cb, wd); e_file_dialog_show(dia); @@ -198,17 +198,15 @@ static void _e_wid_active_hook_cb(E_Fileman *fileman, char *file, void *data) { char *ext; - Evas *evas; E_Widget_Data *wd; - - + wd = e_widget_data_get(data); ext = strrchr(file, '.'); - if(!ext) - return; - if(strcasecmp(ext, ".png") && strcasecmp(ext, ".jpg") && - strcasecmp(ext, ".jpeg")) + if (!ext) return; + if ((strcasecmp(ext, ".png")) && + (strcasecmp(ext, ".jpg")) && + (strcasecmp(ext, ".jpeg"))) return; e_icon_file_set(wd->o_icon, file); @@ -253,13 +251,13 @@ _e_wid_select_cb(E_File_Dialog *dia, char *file, void *data) wd = data; ext = strrchr(file, '.'); - if(!ext) - return; - if(strcasecmp(ext, ".png") && strcasecmp(ext, ".jpg") && - strcasecmp(ext, ".jpeg")) + if (!ext) return; + if ((strcasecmp(ext, ".png")) && + (strcasecmp(ext, ".jpg")) && + (strcasecmp(ext, ".jpeg"))) return; - if(wd->select_func) + if (wd->select_func) wd->select_func(wd->obj, file, wd->select_data); e_icon_file_set(wd->o_icon, file);