From a09f2540d214b0ba6257d135b57831053badbc0f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 29 Feb 2024 19:50:08 +0100 Subject: [PATCH] dix: unexport ProcessVelocityData2D() Only used with on source file, so unexport and make it static. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- dix/ptrveloc.c | 3 +-- include/ptrveloc.h | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c index 1245b7bfa..a79a83eee 100644 --- a/dix/ptrveloc.c +++ b/dix/ptrveloc.c @@ -690,8 +690,7 @@ QueryTrackers(DeviceVelocityPtr vel, int cur_t) * Perform velocity approximation based on 2D 'mickeys' (mouse motion delta). * return true if non-visible state reset is suggested */ -BOOL -ProcessVelocityData2D(DeviceVelocityPtr vel, double dx, double dy, int time) +static BOOL ProcessVelocityData2D(DeviceVelocityPtr vel, double dx, double dy, int time) { double velocity; diff --git a/include/ptrveloc.h b/include/ptrveloc.h index aa46c0191..024123ba5 100644 --- a/include/ptrveloc.h +++ b/include/ptrveloc.h @@ -81,9 +81,6 @@ typedef struct _DeviceVelocityRec { } statistics; } DeviceVelocityRec, *DeviceVelocityPtr; -extern _X_EXPORT BOOL -ProcessVelocityData2D(DeviceVelocityPtr vel, double dx, double dy, int time); - extern _X_EXPORT double BasicComputeAcceleration(DeviceIntPtr dev, DeviceVelocityPtr vel, double velocity, double threshold, double acc);