wacom: Remove private function from header

This commit is contained in:
Bastien Nocera 2012-01-11 11:59:14 +00:00
parent 469e6a610d
commit d00e7ee0bd
2 changed files with 11 additions and 15 deletions

View file

@ -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,

View file

@ -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,