From 616f06c25c06ec04430c4b8f0ac15a40325cd177 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 16 Oct 2020 12:41:32 +0200 Subject: [PATCH] xdg_positioner: remove unused field The resource field of wlr_xdg_positioner is never initialized or accessed within wlroots. The wl_resource for this interface is stored in the wlr_xdg_positioner_resource struct. --- include/wlr/types/wlr_xdg_shell.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index 45c5aee0..0b9167d2 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -48,8 +48,6 @@ struct wlr_xdg_client { }; struct wlr_xdg_positioner { - struct wl_resource *resource; - struct wlr_box anchor_rect; enum xdg_positioner_anchor anchor; enum xdg_positioner_gravity gravity;