summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2007-03-11 05:54:07 +0000
committerChristopher Michael <cpmichael1@comcast.net>2007-03-11 05:54:07 +0000
commitd03023d848f43954da78418ded89b9d427c22375 (patch)
treebc6172abe44b18c3a10f0efd1561199842437e98
parent369d5107c04fae1c7cc4ee832b481a263539b93f (diff)
Remove some unused varaibles and unused functions.
SVN revision: 28651
-rw-r--r--src/bin/e_fm.c2
-rw-r--r--src/bin/e_fm_main.c1
-rw-r--r--src/bin/e_fm_prop.c4
-rw-r--r--src/bin/e_int_config_dpms.c52
-rw-r--r--src/bin/e_int_menus.c4
5 files changed, 5 insertions, 58 deletions
diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c
index bf43c2d..15d4a5f 100644
--- a/src/bin/e_fm.c
+++ b/src/bin/e_fm.c
@@ -1287,7 +1287,6 @@ e_fm2_client_data(Ecore_Ipc_Event_Client_Data *e)
1287 struct stat st; 1287 struct stat st;
1288 int broken_link; 1288 int broken_link;
1289 E_Fm2_Smart_Data *sd; 1289 E_Fm2_Smart_Data *sd;
1290 void **sdat;
1291 1290
1292 dir = e_fm2_real_path_get(l->data); 1291 dir = e_fm2_real_path_get(l->data);
1293 sd = evas_object_smart_data_get(l->data); 1292 sd = evas_object_smart_data_get(l->data);
@@ -5477,7 +5476,6 @@ static void
5477_e_fm2_removable_dev_add(const char *uuid) 5476_e_fm2_removable_dev_add(const char *uuid)
5478{ 5477{
5479 E_Fm2_Removable *rem; 5478 E_Fm2_Removable *rem;
5480 const char *lab;
5481 FILE *f; 5479 FILE *f;
5482 char buf[4096]; 5480 char buf[4096];
5483 5481
diff --git a/src/bin/e_fm_main.c b/src/bin/e_fm_main.c
index 3b66f0f..e3559f9 100644
--- a/src/bin/e_fm_main.c
+++ b/src/bin/e_fm_main.c
@@ -243,7 +243,6 @@ _e_ipc_cb_server_data(void *data, int type, void *event)
243 Evas_List *files = NULL; 243 Evas_List *files = NULL;
244 struct dirent *dp; 244 struct dirent *dp;
245 int dot_order = 0; 245 int dot_order = 0;
246 char *file;
247 char buf[4096]; 246 char buf[4096];
248 FILE *f; 247 FILE *f;
249 248
diff --git a/src/bin/e_fm_prop.c b/src/bin/e_fm_prop.c
index a1853ae..e6b24b0 100644
--- a/src/bin/e_fm_prop.c
+++ b/src/bin/e_fm_prop.c
@@ -39,9 +39,11 @@
39static void *_create_data(E_Config_Dialog *cfd); 39static void *_create_data(E_Config_Dialog *cfd);
40static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); 40static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
41static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); 41static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
42static int _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
43static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata); 42static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
43#if 0
44static int _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
44static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata); 45static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
46#endif
45 47
46static void _cb_icon_sel(void *data, void *data2); 48static void _cb_icon_sel(void *data, void *data2);
47static void _cb_type(void *data, Evas_Object *obj, void *event_info); 49static void _cb_type(void *data, Evas_Object *obj, void *event_info);
diff --git a/src/bin/e_int_config_dpms.c b/src/bin/e_int_config_dpms.c
index a961084..360b7d5 100644
--- a/src/bin/e_int_config_dpms.c
+++ b/src/bin/e_int_config_dpms.c
@@ -2,9 +2,6 @@
2 2
3static void *_create_data(E_Config_Dialog *cfd); 3static void *_create_data(E_Config_Dialog *cfd);
4static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); 4static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
5static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
6static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas,
7 E_Config_Dialog_Data *cfdata);
8static int _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); 5static int _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
9static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, 6static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas,
10 E_Config_Dialog_Data *cfdata); 7 E_Config_Dialog_Data *cfdata);
@@ -144,53 +141,6 @@ _apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
144 e_config_save_queue(); 141 e_config_save_queue();
145} 142}
146 143
147static int
148_basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
149{
150 /*
151 * NOTE: Since the BASIC interface does not allow you to manipulate
152 * the suspend and off features, I have decided to have them disabled
153 * when applying changes from this dialog.
154 *
155 * I do this because the timeouts must always satisfy the following:
156 * standby <= suspend <= off
157 * and if you use the basic dialog, and increase the standby timeout
158 * you might very well unknowingly push it right up to the off timout.
159 * at which point, you monitor will turn off, instead of going into
160 * standby. Which could be annoying.
161 */
162 cfdata->enable_suspend = 0;
163 cfdata->enable_off = 0;
164
165 _apply_data(cfd, cfdata);
166 return 1;
167}
168
169static Evas_Object *
170_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
171{
172 Evas_Object *o, *of, *ob;
173 o = e_widget_list_add(evas, 0, 0);
174
175 ob = e_widget_check_add(evas, _("Enable DPMS"), &(cfdata->enable_dpms));
176 e_widget_list_object_append(o, ob, 1, 1 ,0);
177
178 of = e_widget_framelist_add(evas, _("DPMS Timer(s)"), 0);
179
180 ob = e_widget_check_add(evas, _("Standby"), &(cfdata->enable_standby));
181 e_widget_framelist_object_append(of, ob);
182 ob = e_widget_slider_add(evas, 1, 0, _("%1.0f minutes"),
183 1.0, 90.0, 1.0, 0, &(cfdata->standby_timeout),
184 NULL, 200);
185 e_widget_on_change_hook_set(ob, _cb_standby_slider_change, cfdata);
186 cfdata->standby_slider = ob;
187 e_widget_framelist_object_append(of, ob);
188
189 e_widget_list_object_append(o, of, 1, 1, 0.5);
190 e_dialog_resizable_set(cfd->dia, 0);
191 return o;
192}
193
194/* advanced window */ 144/* advanced window */
195static int 145static int
196_advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) 146_advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
@@ -203,7 +153,7 @@ static Evas_Object *
203_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) 153_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
204{ 154{
205 Evas_Object *o, *of, *ob; 155 Evas_Object *o, *of, *ob;
206 E_Radio_Group *rg; 156
207 o = e_widget_list_add(evas, 0, 0); 157 o = e_widget_list_add(evas, 0, 0);
208 158
209 ob = e_widget_check_add(evas, _("Enable DPMS"), &(cfdata->enable_dpms)); 159 ob = e_widget_check_add(evas, _("Enable DPMS"), &(cfdata->enable_dpms));
diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c
index 2206c00..b8e29c7 100644
--- a/src/bin/e_int_menus.c
+++ b/src/bin/e_int_menus.c
@@ -1139,8 +1139,6 @@ static void
1139_e_int_menus_clients_add_by_none(Evas_List *borders, E_Menu *m) 1139_e_int_menus_clients_add_by_none(Evas_List *borders, E_Menu *m)
1140{ 1140{
1141 Evas_List *l = NULL, *ico = NULL; 1141 Evas_List *l = NULL, *ico = NULL;
1142 E_Menu *subm;
1143 E_Menu_Item *mi;
1144 1142
1145 for (l = borders; l; l = l->next) 1143 for (l = borders; l; l = l->next)
1146 { 1144 {
@@ -1163,7 +1161,7 @@ _e_int_menus_clients_pre_cb(void *data, E_Menu *m)
1163{ 1161{
1164 E_Menu *subm; 1162 E_Menu *subm;
1165 E_Menu_Item *mi; 1163 E_Menu_Item *mi;
1166 Evas_List *l = NULL, *borders = NULL, *alt = NULL; 1164 Evas_List *l = NULL, *borders = NULL;
1167 E_Zone *zone = NULL; 1165 E_Zone *zone = NULL;
1168 E_Desk *desk = NULL; 1166 E_Desk *desk = NULL;
1169 Main_Data *dat; 1167 Main_Data *dat;