remove unused variables

This commit is contained in:
Leonardo Hernández Hernández 2022-09-20 23:40:35 -05:00
parent 31106eff64
commit 2385d82612
Failed to generate hash of commit
2 changed files with 0 additions and 3 deletions

View file

@ -20,7 +20,6 @@ static inline Client *
client_from_wlr_surface(struct wlr_surface *s) client_from_wlr_surface(struct wlr_surface *s)
{ {
struct wlr_xdg_surface *surface; struct wlr_xdg_surface *surface;
struct wlr_surface *parent;
#ifdef XWAYLAND #ifdef XWAYLAND
struct wlr_xwayland_surface *xsurface; struct wlr_xwayland_surface *xsurface;
@ -41,7 +40,6 @@ client_from_wlr_surface(struct wlr_surface *s)
static inline Client * static inline Client *
client_get_parent(Client *c) client_get_parent(Client *c)
{ {
Client *p;
#ifdef XWAYLAND #ifdef XWAYLAND
if (client_is_x11(c) && c->surface.xwayland->parent) if (client_is_x11(c) && c->surface.xwayland->parent)
return client_from_wlr_surface(c->surface.xwayland->parent->surface); return client_from_wlr_surface(c->surface.xwayland->parent->surface);

1
dwl.c
View file

@ -922,7 +922,6 @@ createmon(struct wl_listener *listener, void *data)
* monitor) becomes available. */ * monitor) becomes available. */
struct wlr_output *wlr_output = data; struct wlr_output *wlr_output = data;
const MonitorRule *r; const MonitorRule *r;
Client *c;
size_t i; size_t i;
Monitor *m = wlr_output->data = ecalloc(1, sizeof(*m)); Monitor *m = wlr_output->data = ecalloc(1, sizeof(*m));
m->wlr_output = wlr_output; m->wlr_output = wlr_output;