diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-04-03 15:42:45 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-04-09 10:41:59 +1000 |
commit | bec41416dbbee73eef9eee122d0acacc148e329d (patch) | |
tree | f086f8915a966583f69e0375ed3bf5cb97ab8c90 | |
parent | f1948e08ee9894864254a18098e4f4fceb6e322f (diff) |
eventcomm: drop superflous helper function
last_mt_vals_slot is only used in one location and there we can just use
cur_slot
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | src/eventcomm.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c index 858efeb..5030150 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -110,16 +110,6 @@ EventProtoDataAlloc(int fd) return proto_data; } -static int -last_mt_vals_slot(const SynapticsPrivate * priv) -{ - struct eventcomm_proto_data *proto_data = - (struct eventcomm_proto_data *) priv->proto_data; - int value = proto_data->cur_slot; - - return value < priv->num_slots ? value : -1; -} - static void UninitializeTouch(InputInfoPtr pInfo) { @@ -549,7 +539,7 @@ EventProcessTouchEvent(InputInfoPtr pInfo, struct SynapticsHwState *hw, proto_data->cur_slot = ev->value; } else { - int slot_index = last_mt_vals_slot(priv); + int slot_index = proto_data->cur_slot; if (slot_index < 0) return; |