aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorRyan Walklin <ryan@testtoast.com>2018-12-15 14:59:51 +1100
committerRyan Walklin <ryan@testtoast.com>2018-12-15 14:59:51 +1100
commitf8129ecbc5147a62d93d6bac5e61e5ce79d89667 (patch)
tree256c7c3ded68d4b95ed09f7a2fbfd5bc67dbcee9 /rootston
parent282fcd458cc8e6ecd757174fe7f10271c323f0e7 (diff)
Remove unused variables
Diffstat (limited to 'rootston')
-rw-r--r--rootston/switch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/rootston/switch.c b/rootston/switch.c
index b480e054..65c5e627 100644
--- a/rootston/switch.c
+++ b/rootston/switch.c
@@ -13,8 +13,6 @@ void roots_switch_handle_toggle(struct roots_switch *lid_switch,
struct wl_list *bound_switches = &lid_switch->seat->input->server->config->switches;
struct roots_switch_config *sc;
wl_list_for_each(sc, bound_switches, link) {
- bool device_match = false;
- bool state_match = false;
if ((sc->name != NULL && strcmp(event->device->name, sc->name) != 0) &&
(sc->name == NULL && event->switch_type != sc->switch_type)) {
continue;