diff options
author | Christopher Michael <devilhorns@comcast.net> | 2021-12-07 09:02:23 -0500 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2021-12-07 09:03:43 -0500 |
commit | b13a34cfeb1aadfb32951b3e5457dcab601c1ca7 (patch) | |
tree | 241c50385ef71c6725dec323d9397c13c9ddc9ac | |
parent | 5ce8d65020c0e81953344f27ddadce2a91fa42d1 (diff) | |
download | enlightenment-b13a34cfeb1aadfb32951b3e5457dcab601c1ca7.tar.gz |
shot: Remove unused variables and unused function
-rw-r--r-- | src/modules/shot/e_mod_preview.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/modules/shot/e_mod_preview.c b/src/modules/shot/e_mod_preview.c index c92642a2ec..b72e6ceeff 100644 --- a/src/modules/shot/e_mod_preview.c +++ b/src/modules/shot/e_mod_preview.c @@ -49,22 +49,6 @@ _quality_change_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EI quality = elm_slider_value_get(obj); } -static int -_scroller_child_fits(Evas_Object *o, Evas_Coord *smaller_w, Evas_Coord *smaller_h) -{ - int ret = 0; - Evas_Coord x = 0, y = 0, w = 0, h = 0, cw = 0, ch = 0; - - elm_scroller_child_size_get(o, &cw, &ch); - elm_scroller_region_get(o, &x, &y, &w, &h); - *smaller_w = *smaller_h = 0; - if (cw <= w) ret |= 1; - else *smaller_w = cw - w; - if (ch <= h) ret |= 2; - else *smaller_h = ch - h; - return ret; -} - void preview_dialog_show(E_Zone *zone, E_Client *ec, const char *params, void *dst, int sx, int sy, int sw, int sh) @@ -162,10 +146,8 @@ preview_dialog_show(E_Zone *zone, E_Client *ec, const char *params, void *dst, } else { - Eina_Bool scroll_main_ok = EINA_FALSE, scroll_tools_ok = EINA_FALSE; Evas_Coord maxw, maxh, minw, minh; Evas_Object *sc_main, *sc_tool; - int loops = 0; elm_slider_value_set(o_sl, quality); |