From 4e3d140c4859124ae4cd87789d009c4a973d62c3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 10 Dec 2013 22:09:24 -0800 Subject: Remove unused function TDrawArc Suggested by cppcheck Signed-off-by: Alan Coopersmith --- transform.c | 22 ---------------------- transform.h | 3 --- 2 files changed, 25 deletions(-) diff --git a/transform.c b/transform.c index 36a2f3e..557cbb8 100644 --- a/transform.c +++ b/transform.c @@ -71,28 +71,6 @@ TFillPolygon (register Display *dpy, Drawable d, GC gc, Transform *t, } } -void -TDrawArc (register Display *dpy, Drawable d, GC gc, Transform *t, - double x, double y, double width, double height, - int angle1, int angle2) -{ - int xx, xy, xw, xh; - - xx = Xx(x,y,t); - xy = Xy(x,y,t); - xw = Xwidth (width, height, t); - xh = Xheight (width, height, t); - if (xw < 0) { - xx += xw; - xw = -xw; - } - if (xh < 0) { - xy += xh; - xh = -xh; - } - XDrawArc (dpy, d, gc, xx, xy, xw, xh, angle1, angle2); -} - void TFillArc (register Display *dpy, Drawable d, GC gc, Transform *t, double x, double y, double width, double height, diff --git a/transform.h b/transform.h index 58238c4..ad17ca7 100644 --- a/transform.h +++ b/transform.h @@ -56,9 +56,6 @@ typedef struct _TRectangle { extern void TFillPolygon ( Display *dpy, Drawable d, GC gc, Transform *t, TPoint *points, int n_points, int shape, int mode ); -extern void TDrawArc ( Display *dpy, Drawable d, GC gc, Transform *t, - double x, double y, double width, double height, - int angle1, int angle2 ); extern void TFillArc ( Display *dpy, Drawable d, GC gc, Transform *t, double x, double y, double width, double height, int angle1, int angle2 ); -- cgit v1.2.3