From 378c77926c726424c7ea0381e80056c4fc566f4d Mon Sep 17 00:00:00 2001 From: seoz Date: Mon, 1 Aug 2011 06:49:58 +0000 Subject: [PATCH] elm win: Refactoring. Removed unused local variable. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61934 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_win.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index b218639..501effb 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -2557,7 +2557,6 @@ _elm_ee_win_get(const Evas_Object *obj) EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj) { - Ecore_X_Window xwin = 0; Elm_Win *win; const char *type; @@ -2567,10 +2566,10 @@ elm_win_xwindow_get(const Evas_Object *obj) if (type != widtype) return _elm_ee_win_get(obj); #ifdef HAVE_ELEMENTARY_X win = elm_widget_data_get(obj); - if (!win) return xwin; + if (!win) return 0; if (win->xwin) return win->xwin; if (win->parent) return elm_win_xwindow_get(win->parent); #endif - return xwin; + return 0; win = NULL; } -- 2.7.4