diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2022-08-31 11:35:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-09-01 13:15:09 +1000 |
commit | 1aaa36753c1008733b62cea5f60088ddbddff1e8 (patch) | |
tree | 16b6d1d2b99b99cbcc8211fef78666b833de3937 | |
parent | 23c46706f12982c3baaa03b3b8f53ea72679a136 (diff) | |
download | xf86-input-wacom-1aaa36753c1008733b62cea5f60088ddbddff1e8.tar.gz |
Remove useless Wacom action name setting
Copy/paste error from when this as lifted from the properties code to
the core driver code, in the commits leading up to
5326fd126042684338dfb662f48ba2e27be7fa5a.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/wcmCommon.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c index b39a43a..44bffb5 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -154,9 +154,7 @@ void wcmResetButtonAction(WacomDevicePtr priv, int button) { WacomAction new_action = {}; int x11_button = priv->button_default[button]; - char name[64]; - sprintf(name, "Wacom button action %d", button); wcmActionSet(&new_action, 0, AC_BUTTON | AC_KEYBTNPRESS | x11_button); wcmActionCopy(&priv->key_actions[button], &new_action); } @@ -164,9 +162,7 @@ void wcmResetButtonAction(WacomDevicePtr priv, int button) void wcmResetStripAction(WacomDevicePtr priv, int index) { WacomAction new_action = {}; - char name[64]; - sprintf(name, "Wacom strip action %d", index); wcmActionSet(&new_action, 0, AC_BUTTON | AC_KEYBTNPRESS | (priv->strip_default[index])); wcmActionSet(&new_action, 1, AC_BUTTON | (priv->strip_default[index])); wcmActionCopy(&priv->strip_actions[index], &new_action); @@ -175,9 +171,7 @@ void wcmResetStripAction(WacomDevicePtr priv, int index) void wcmResetWheelAction(WacomDevicePtr priv, int index) { WacomAction new_action = {}; - char name[64]; - sprintf(name, "Wacom wheel action %d", index); wcmActionSet(&new_action, 0, AC_BUTTON | AC_KEYBTNPRESS | (priv->wheel_default[index])); wcmActionSet(&new_action, 1, AC_BUTTON | (priv->wheel_default[index])); wcmActionCopy(&priv->wheel_actions[index], &new_action); |