mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	layer-shell: remove unused surface list
This was rendered useless in 5cde359.
			
			
This commit is contained in:
		
							parent
							
								
									b61a98c417
								
							
						
					
					
						commit
						92c85858a9
					
				
					 2 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
					@ -29,7 +29,6 @@
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
struct wlr_layer_shell_v1 {
 | 
					struct wlr_layer_shell_v1 {
 | 
				
			||||||
	struct wl_global *global;
 | 
						struct wl_global *global;
 | 
				
			||||||
	struct wl_list surfaces; // wl_layer_surface
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wl_listener display_destroy;
 | 
						struct wl_listener display_destroy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,7 +62,6 @@ struct wlr_layer_surface_v1_configure {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct wlr_layer_surface_v1 {
 | 
					struct wlr_layer_surface_v1 {
 | 
				
			||||||
	struct wl_list link; // wlr_layer_shell_v1::surfaces
 | 
					 | 
				
			||||||
	struct wlr_surface *surface;
 | 
						struct wlr_surface *surface;
 | 
				
			||||||
	struct wlr_output *output;
 | 
						struct wlr_output *output;
 | 
				
			||||||
	struct wl_resource *resource;
 | 
						struct wl_resource *resource;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -232,7 +232,6 @@ static void layer_surface_destroy(struct wlr_layer_surface_v1 *surface) {
 | 
				
			||||||
	wl_resource_set_user_data(surface->resource, NULL);
 | 
						wl_resource_set_user_data(surface->resource, NULL);
 | 
				
			||||||
	surface->surface->role_data = NULL;
 | 
						surface->surface->role_data = NULL;
 | 
				
			||||||
	wl_list_remove(&surface->surface_destroy.link);
 | 
						wl_list_remove(&surface->surface_destroy.link);
 | 
				
			||||||
	wl_list_remove(&surface->link);
 | 
					 | 
				
			||||||
	free(surface->namespace);
 | 
						free(surface->namespace);
 | 
				
			||||||
	free(surface);
 | 
						free(surface);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -440,7 +439,6 @@ static void layer_shell_handle_get_layer_surface(struct wl_client *wl_client,
 | 
				
			||||||
			surface, surface->resource);
 | 
								surface, surface->resource);
 | 
				
			||||||
	wl_resource_set_implementation(surface->resource,
 | 
						wl_resource_set_implementation(surface->resource,
 | 
				
			||||||
		&layer_surface_implementation, surface, layer_surface_resource_destroy);
 | 
							&layer_surface_implementation, surface, layer_surface_resource_destroy);
 | 
				
			||||||
	wl_list_insert(&shell->surfaces, &surface->link);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct zwlr_layer_shell_v1_interface layer_shell_implementation = {
 | 
					static const struct zwlr_layer_shell_v1_interface layer_shell_implementation = {
 | 
				
			||||||
| 
						 | 
					@ -479,8 +477,6 @@ struct wlr_layer_shell_v1 *wlr_layer_shell_v1_create(struct wl_display *display)
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_list_init(&layer_shell->surfaces);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	struct wl_global *global = wl_global_create(display,
 | 
						struct wl_global *global = wl_global_create(display,
 | 
				
			||||||
		&zwlr_layer_shell_v1_interface, 2, layer_shell, layer_shell_bind);
 | 
							&zwlr_layer_shell_v1_interface, 2, layer_shell, layer_shell_bind);
 | 
				
			||||||
	if (!global) {
 | 
						if (!global) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue