diff options
author | Pablo Barciela <[email protected]> | 2019-03-09 15:26:57 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-04-10 21:53:31 +0000 |
commit | 203399fc4969ea512c96592ec6a22218015f4fbd (patch) | |
tree | 8917d69c9c64996daef288a47214d9d6f5e5d511 /eel/eel-canvas-rect-ellipse.c | |
parent | e50549cf502f988ff214a2714a8cdd6fb6892244 (diff) | |
download | caja-203399fc4969ea512c96592ec6a22218015f4fbd.tar.bz2 caja-203399fc4969ea512c96592ec6a22218015f4fbd.tar.xz |
drop functions defined but not used
Diffstat (limited to 'eel/eel-canvas-rect-ellipse.c')
-rw-r--r-- | eel/eel-canvas-rect-ellipse.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/eel/eel-canvas-rect-ellipse.c b/eel/eel-canvas-rect-ellipse.c index 95d7c454..7538244f 100644 --- a/eel/eel-canvas-rect-ellipse.c +++ b/eel/eel-canvas-rect-ellipse.c @@ -201,45 +201,6 @@ eel_canvas_re_init (EelCanvasRE *re) re->width = 0.0; } -static void get_bounds (EelCanvasRE *re, double *px1, double *py1, double *px2, double *py2) -{ - EelCanvasItem *item; - double x1, y1, x2, y2; - int cx1, cy1, cx2, cy2; - double hwidth; - -#ifdef VERBOSE - g_print ("re get_bounds\n"); -#endif - item = EEL_CANVAS_ITEM (re); - - if (re->width_pixels) - hwidth = (re->width / item->canvas->pixels_per_unit) / 2.0; - else - hwidth = re->width / 2.0; - - x1 = re->x1; - y1 = re->y1; - x2 = re->x2; - y2 = re->y2; - - eel_canvas_item_i2w (item, &x1, &y1); - eel_canvas_item_i2w (item, &x2, &y2); - eel_canvas_w2c (item->canvas, x1 - hwidth, y1 - hwidth, &cx1, &cy1); - eel_canvas_w2c (item->canvas, x2 + hwidth, y2 + hwidth, &cx2, &cy2); - *px1 = cx1; - *py1 = cy1; - *px2 = cx2; - *py2 = cy2; - - /* Some safety fudging */ - - *px1 -= 2; - *py1 -= 2; - *px2 += 2; - *py2 += 2; -} - static void eel_canvas_re_set_fill (EelCanvasRE *re, gboolean fill_set) { |