From: Emil Velikov <emil.veli...@collabora.com>

Similar to earlier commits - the API layer already does these for us.

Signed-off-by: Emil Velikov <emil.veli...@collabora.com>
---
 src/waffle/android/droid_window.c | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/src/waffle/android/droid_window.c 
b/src/waffle/android/droid_window.c
index 7826acb..620569f 100644
--- a/src/waffle/android/droid_window.c
+++ b/src/waffle/android/droid_window.c
@@ -100,12 +100,7 @@ bool
 droid_window_show(struct wcore_window *wc_self)
 {
     struct droid_window *self = droid_window(wc_self);
-    struct droid_display *dpy;
-
-    if (!self)
-        return false;
-
-    dpy = droid_display(wc_self->display);
+    struct droid_display *dpy = droid_display(wc_self->display);
 
     return droid_show_surface(dpy->pSFContainer, self->pANWContainer);
 }
@@ -116,12 +111,7 @@ droid_window_resize(struct wcore_window *wc_self,
                     int32_t height)
 {
     struct droid_window *self = droid_window(wc_self);
-    struct droid_display *dpy;
-
-    if (!self)
-        return false;
-
-    dpy = droid_display(wc_self->display);
+    struct droid_display *dpy = droid_display(wc_self->display);
 
     return droid_resize_surface(dpy->pSFContainer, self->pANWContainer,
         width, height);
-- 
2.6.2

_______________________________________________
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle

Reply via email to