From 7be309710dcd679e0b570bc2f076ac00ae9ad65d Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 30 Oct 2018 23:27:49 +1000 Subject: Remove enum movement_direction There's no point having both movement_direction and wlr_direction. This replaces the former with the latter. As movement_direction also contained MOVE_PARENT and MOVE_CHILD items, these are now checked specifically in the focus command and handled in separate functions, just like the other focus variants. --- common/util.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'common') diff --git a/common/util.c b/common/util.c index 561b3804..467aa4b5 100644 --- a/common/util.c +++ b/common/util.c @@ -175,24 +175,3 @@ failed: free(current); return NULL; } - -bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out) { - switch (dir) { - case MOVE_UP: - *out = WLR_DIRECTION_UP; - break; - case MOVE_DOWN: - *out = WLR_DIRECTION_DOWN; - break; - case MOVE_LEFT: - *out = WLR_DIRECTION_LEFT; - break; - case MOVE_RIGHT: - *out = WLR_DIRECTION_RIGHT; - break; - default: - return false; - } - - return true; -} -- cgit v1.2.3