diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-12-10 22:09:24 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-12-10 22:30:29 -0800 |
commit | 4e3d140c4859124ae4cd87789d009c4a973d62c3 (patch) | |
tree | dcf1fe027a1935786e4a28039c62152723805a18 | |
parent | 0563142cc89b04d1bca3208751b186df9649dbda (diff) |
Remove unused function TDrawArc
Suggested by cppcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | transform.c | 22 | ||||
-rw-r--r-- | transform.h | 3 |
2 files changed, 0 insertions, 25 deletions
diff --git a/transform.c b/transform.c index 36a2f3e..557cbb8 100644 --- a/transform.c +++ b/transform.c @@ -72,28 +72,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, int angle1, int angle2) 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 ); |