From d00e7ee0bd36a9b2b888b6411899dc31dd1cfdb7 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 11 Jan 2012 11:59:14 +0000 Subject: [PATCH] wacom: Remove private function from header --- panels/wacom/calibrator/calibrator.c | 22 +++++++++++----------- panels/wacom/calibrator/calibrator.h | 4 ---- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/panels/wacom/calibrator/calibrator.c b/panels/wacom/calibrator/calibrator.c index 45fdf3c39..a907a29dc 100644 --- a/panels/wacom/calibrator/calibrator.c +++ b/panels/wacom/calibrator/calibrator.c @@ -34,6 +34,17 @@ reset (struct Calib *c) c->num_clicks = 0; } +/* check whether the coordinates are along the respective axis */ +static gboolean +along_axis (struct Calib *c, + int xy, + int x0, + int y0) +{ + return ((abs(xy - x0) <= c->threshold_misclick) || + (abs(xy - y0) <= c->threshold_misclick)); +} + /* add a click with the given coordinates */ gboolean add_click (struct Calib *c, @@ -106,17 +117,6 @@ add_click (struct Calib *c, return TRUE; } -/* check whether the coordinates are along the respective axis */ -gboolean -along_axis (struct Calib *c, - int xy, - int x0, - int y0) -{ - return ((abs(xy - x0) <= c->threshold_misclick) || - (abs(xy - y0) <= c->threshold_misclick)); -} - /* calculate and apply the calibration */ gboolean finish (struct Calib *c, diff --git a/panels/wacom/calibrator/calibrator.h b/panels/wacom/calibrator/calibrator.h index 42413660a..3ff9b50e4 100644 --- a/panels/wacom/calibrator/calibrator.h +++ b/panels/wacom/calibrator/calibrator.h @@ -102,10 +102,6 @@ void reset (struct Calib *c); gboolean add_click (struct Calib *c, int x, int y); -gboolean along_axis (struct Calib *c, - int xy, - int x0, - int y0); gboolean finish (struct Calib *c, int width, int height,