elm win: Refactoring. Removed unused local variable.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 1 Aug 2011 06:49:58 +0000 (06:49 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 1 Aug 2011 06:49:58 +0000 (06:49 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61934 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_win.c

index b218639..501effb 100644 (file)
@@ -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;
 }