From 15c565acc122f1d9d32f8902a645c67d9ac0fc5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Jan=C3=ADk?= Date: Wed, 24 Oct 2001 06:36:27 +0000 Subject: [PATCH] Don't define max. (coordinates_in_window): Remove unused variable `uy'. --- src/ChangeLog | 3 +++ src/window.c | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 051d55e63a..f34199c8a3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-10-24 Pavel Jan,Bm(Bk + * window.c: Don't define max. + (coordinates_in_window): Remove unused variable `uy'. + * widget.c: Don't define max. * process.c: Don't define max. diff --git a/src/window.c b/src/window.c index a510db6fab..303c06c884 100644 --- a/src/window.c +++ b/src/window.c @@ -48,10 +48,6 @@ Boston, MA 02111-1307, USA. */ #include "macterm.h" #endif -#ifndef max -#define max(a, b) ((a) < (b) ? (b) : (a)) -#endif - /* Values returned from coordinates_in_window. */ enum window_part @@ -517,7 +513,7 @@ coordinates_in_window (w, x, y) int left_x, right_x, top_y, bottom_y; int flags_area_width = FRAME_LEFT_FLAGS_AREA_WIDTH (f); enum window_part part; - int ux = CANON_X_UNIT (f), uy = CANON_Y_UNIT (f); + int ux = CANON_X_UNIT (f); int x0 = XFASTINT (w->left) * ux; int x1 = x0 + XFASTINT (w->width) * ux; /* The width of the area where the vertical line can be dragged. -- 2.20.1