[PATCH weston 1/3] ivi-shell: clear unused struct members
Ucan, Emre (ADITG/SW1)
eucan at de.adit-jv.com
Fri Jul 1 09:34:44 UTC 2016
I removed unused members of ivi_layout* data
structs.
Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
ivi-shell/ivi-layout-private.h | 7 -------
ivi-shell/ivi-layout.c | 10 ----------
2 files changed, 17 deletions(-)
diff --git a/ivi-shell/ivi-layout-private.h b/ivi-shell/ivi-layout-private.h
index 66b19f6..c1b52f1 100644
--- a/ivi-shell/ivi-layout-private.h
+++ b/ivi-shell/ivi-layout-private.h
@@ -55,14 +55,8 @@ struct ivi_layout_surface {
struct {
struct ivi_layout_surface_properties prop;
- struct wl_list link;
} pending;
- struct {
- struct wl_list link;
- struct wl_list layer_list;
- } order;
-
struct wl_list view_list; /* ivi_layout_view::surf_link */
};
@@ -111,7 +105,6 @@ struct ivi_layout {
} surface_notification;
struct weston_layer layout_layer;
- struct wl_signal warning_signal;
struct ivi_layout_transition_set *transitions;
struct wl_list pending_transition_list;
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 13c184c..f8533f9 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -81,13 +81,11 @@ struct ivi_layout_screen {
struct {
struct wl_list layer_list;
- struct wl_list link;
} pending;
struct {
int dirty;
struct wl_list layer_list;
- struct wl_list link;
} order;
};
@@ -236,8 +234,6 @@ ivi_layout_surface_destroy(struct ivi_layout_surface *ivisurf)
return;
}
- wl_list_remove(&ivisurf->pending.link);
- wl_list_remove(&ivisurf->order.link);
wl_list_remove(&ivisurf->link);
wl_list_for_each_safe(ivi_view, next, &ivisurf->view_list, surf_link) {
@@ -274,10 +270,8 @@ create_screen(struct weston_compositor *ec)
iviscrn->output = output;
wl_list_init(&iviscrn->pending.layer_list);
- wl_list_init(&iviscrn->pending.link);
wl_list_init(&iviscrn->order.layer_list);
- wl_list_init(&iviscrn->order.link);
wl_list_insert(&layout->screen_list, &iviscrn->link);
}
@@ -1991,10 +1985,6 @@ ivi_layout_surface_create(struct weston_surface *wl_surface,
init_surface_properties(&ivisurf->prop);
ivisurf->pending.prop = ivisurf->prop;
- wl_list_init(&ivisurf->pending.link);
-
- wl_list_init(&ivisurf->order.link);
- wl_list_init(&ivisurf->order.layer_list);
wl_list_init(&ivisurf->view_list);
--
1.7.9.5
More information about the wayland-devel
mailing list