aboutsummaryrefslogtreecommitdiffstats
path: root/src/hwstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hwstate.c')
-rw-r--r--src/hwstate.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/hwstate.c b/src/hwstate.c
index 50e34de..40cef5b 100644
--- a/src/hwstate.c
+++ b/src/hwstate.c
@@ -30,11 +30,6 @@ void init_hwstate(struct HWState *s)
memset(s, 0, sizeof(struct HWState));
}
-static int fincmp(const void *a, const void *b)
-{
- return ((struct FingerState *)a)->id - ((struct FingerState *)b)->id;
-}
-
static inline int clamp15(int x)
{
return x < -XMAX ? -XMAX : x > XMAX ? XMAX : x;
@@ -91,7 +86,4 @@ void modify_hwstate(struct HWState *s,
s->button = hw->button;
s->nfinger = hw->nfinger;
s->evtime = hw->evtime;
-
- /* sort fingers in touching order */
- qsort(s->finger, s->nfinger, sizeof(struct FingerState), fincmp);
}