aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-10-30 15:17:55 +0100
committerGitHub <noreply@github.com>2018-10-30 15:17:55 +0100
commitd3a62633113d487b5a5b1b484736dbe7cbe26bd0 (patch)
tree66f53dddfcd94217beedf25272fe427a34ab665f /common
parentb90af3357030264a1a0def38f3feecb9056f3740 (diff)
parent7be309710dcd679e0b570bc2f076ac00ae9ad65d (diff)
Merge pull request #3033 from RyanDwyer/remove-movement-direction
Remove enum movement_direction
Diffstat (limited to 'common')
-rw-r--r--common/util.c21
1 files changed, 0 insertions, 21 deletions
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;
-}