mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Remove unused variables
This commit is contained in:
		
							parent
							
								
									282fcd458c
								
							
						
					
					
						commit
						f8129ecbc5
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -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 wl_list *bound_switches = &lid_switch->seat->input->server->config->switches;
 | 
				
			||||||
    struct roots_switch_config *sc;
 | 
					    struct roots_switch_config *sc;
 | 
				
			||||||
    wl_list_for_each(sc, bound_switches, link) {
 | 
					    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) &&
 | 
					        if ((sc->name != NULL && strcmp(event->device->name, sc->name) != 0) &&
 | 
				
			||||||
                (sc->name == NULL && event->switch_type != sc->switch_type)) {
 | 
					                (sc->name == NULL && event->switch_type != sc->switch_type)) {
 | 
				
			||||||
            continue;
 | 
					            continue;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue