From 3e3660ae5fd96b6adfbb20f15cd4a7a8fb883000 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 16 May 2023 16:16:21 +0200 Subject: [PATCH] core: Drop META_PAD_DIRECTION_NONE Avoid this strange value, and stick with the ones suitable for rings/strips. Part-of: --- src/core/meta-pad-action-mapper.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core/meta-pad-action-mapper.c b/src/core/meta-pad-action-mapper.c index 506b335b7..33e72c784 100644 --- a/src/core/meta-pad-action-mapper.c +++ b/src/core/meta-pad-action-mapper.c @@ -46,7 +46,6 @@ struct _PadMappingInfo typedef enum { - META_PAD_DIRECTION_NONE = -1, META_PAD_DIRECTION_UP = 0, META_PAD_DIRECTION_DOWN, META_PAD_DIRECTION_CW, @@ -622,8 +621,6 @@ meta_pad_action_mapper_get_action_direction (MetaPadActionMapper *mapper, guint number; double value; - *direction = META_PAD_DIRECTION_NONE; - switch (event->type) { case CLUTTER_PAD_RING: @@ -766,8 +763,6 @@ format_directional_action (GString *str, case META_PAD_DIRECTION_DOWN: g_string_append_printf (str, "↧ %s", action); break; - case META_PAD_DIRECTION_NONE: - g_assert_not_reached (); } }