output-layout: remove useless types/fields

This commit is contained in:
Kirill Primak 2022-01-29 23:10:22 +03:00 committed by Simon Ser
parent 498f30aad1
commit 49fa060442
2 changed files with 0 additions and 13 deletions

View file

@ -15,7 +15,6 @@
#include <wlr/util/addon.h>
struct wlr_box;
struct wlr_output_layout_state;
/**
* Helper to arrange outputs in a 2D coordinate space. The output effective
@ -27,7 +26,6 @@ struct wlr_output_layout_state;
*/
struct wlr_output_layout {
struct wl_list outputs;
struct wlr_output_layout_state *state;
struct {
struct wl_signal add;

View file

@ -8,15 +8,10 @@
#include <wlr/util/log.h>
#include "util/signal.h"
struct wlr_output_layout_state {
struct wlr_box _box; // should never be read directly, use the getter
};
struct wlr_output_layout_output_state {
struct wlr_output_layout *layout;
struct wlr_output_layout_output *l_output;
struct wlr_box _box; // should never be read directly, use the getter
bool auto_configured;
struct wl_listener mode;
@ -31,11 +26,6 @@ struct wlr_output_layout *wlr_output_layout_create(void) {
if (layout == NULL) {
return NULL;
}
layout->state = calloc(1, sizeof(struct wlr_output_layout_state));
if (layout->state == NULL) {
free(layout);
return NULL;
}
wl_list_init(&layout->outputs);
wl_signal_init(&layout->events.add);
@ -69,7 +59,6 @@ void wlr_output_layout_destroy(struct wlr_output_layout *layout) {
output_layout_output_destroy(l_output);
}
free(layout->state);
free(layout);
}