From 963a7600f12be0c3c72cce16fb7c54890bd4fa79 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 23 Feb 2018 11:56:44 +1000 Subject: [PATCH] tools: remove pressure copy/paste leftovers from measure touch-size Signed-off-by: Peter Hutterer --- tools/libinput-measure-touch-size | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tools/libinput-measure-touch-size b/tools/libinput-measure-touch-size index 24d5b309..b0080056 100755 --- a/tools/libinput-measure-touch-size +++ b/tools/libinput-measure-touch-size @@ -133,16 +133,6 @@ class TouchSequence(object): """Mark the TouchSequence as complete (finger is up)""" self.is_active = False - def avg(self): - """Average pressure value of this sequence""" - return int(sum([p.pressure for p in self.points])/len(self.points)) - - def median(self): - """Median pressure value of this sequence""" - ps = sorted([p.pressure for p in self.points]) - idx = int(len(self.points)/2) - return ps[idx] - def __str__(self): return self._str_state() if self.is_active else self._str_summary() @@ -193,7 +183,7 @@ class Device(object): # each of which is a list of tuples of (code, AbsInfo) # # Get the abs list first (or empty list if missing), - # then extract the pressure absinfo from that + # then extract the touch major absinfo from that caps = self.device.capabilities(absinfo=True).get( evdev.ecodes.EV_ABS, [] )