From 0a29589df9e28a33e6594d6f1ade84a94e5fb93a Mon Sep 17 00:00:00 2001 From: Peter Clifton Date: Mon, 19 Dec 2011 01:00:21 +0000 Subject: [PATCH] hid/png/png.c: Remove buggy code for swapping x1/x2 and y1/y2 Since the png hid works, and this code is ineffective due to a typo, we probably ought to remove it. (Caught by clang) --- src/hid/png/png.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/hid/png/png.c b/src/hid/png/png.c index ff8931a5f4..892696b4ff 100644 --- a/src/hid/png/png.c +++ b/src/hid/png/png.c @@ -1425,18 +1425,6 @@ png_fill_rect (hidGC gc, Coord x1, Coord y1, Coord x2, Coord y2) gdImageSetThickness (im, 0); linewidth = 0; - if (x1 > x2) - { - Coord t = x1; - x2 = x2; - x2 = t; - } - if (y1 > y2) - { - Coord t = y1; - y2 = y2; - y2 = t; - } y1 -= bloat; y2 += bloat; SWAP_IF_SOLDER (y1, y2); -- 2.11.4.GIT