hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=4477973f488e75fe1c87adc5c3c275cb6ebff78c

commit 4477973f488e75fe1c87adc5c3c275cb6ebff78c
Author: Thiep Ha <thie...@gmail.com>
Date:   Thu Jul 2 19:58:15 2015 +0900

    cnp: remove redundant code
    
    Summary: Remove redundant NULL assign code
    
    Reviewers: cedric, Hermet, JackDanielZ
    
    Reviewed By: JackDanielZ
    
    Subscribers: seoz
    
    Differential Revision: https://phab.enlightenment.org/D2782
---
 src/lib/elm_cnp.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 0424e31..886f2a6 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -1862,8 +1862,6 @@ _x11_elm_cnp_selection_set(Ecore_X_Window xwin, 
Evas_Object *obj, Elm_Sel_Type s
    if (sel->widget)
      evas_object_event_callback_del_full(sel->widget, EVAS_CALLBACK_DEL,
                                          _x11_sel_obj_del, sel);
-   sel->widget = NULL;
-
    sel->active = EINA_TRUE;
    sel->widget = obj;
    sel->xwin = xwin;
@@ -1952,8 +1950,6 @@ _x11_elm_cnp_selection_get(Ecore_X_Window xwin, const 
Evas_Object *obj, Elm_Sel_
    if (sel->requestwidget)
      evas_object_event_callback_del_full(sel->requestwidget, EVAS_CALLBACK_DEL,
                                          _x11_sel_obj_del2, sel);
-   sel->requestwidget = NULL;
-
    sel->requestformat = format;
    sel->requestwidget = (Evas_Object *)obj;
    sel->xwin = xwin;
@@ -2390,8 +2386,6 @@ _wl_elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type 
selection, Elm_Sel_Form
      evas_object_event_callback_del_full(sel->widget,
                                          EVAS_CALLBACK_DEL,
                                          _wl_sel_obj_del, &wl_cnp_selection);
-   sel->widget = NULL;
-
    sel->active = EINA_TRUE;
    sel->seltype = selection;
    sel->widget = obj;
@@ -2470,8 +2464,6 @@ _wl_elm_cnp_selection_get(const Evas_Object *obj, 
Elm_Sel_Type selection, Elm_Se
      evas_object_event_callback_del_full(sel->requestwidget,
                                          EVAS_CALLBACK_DEL,
                                          _wl_sel_obj_del2, &wl_cnp_selection);
-   sel->requestwidget = NULL;
-
    sel->requestformat = format;
    sel->requestwidget = (Evas_Object *) obj;
    sel->win = win;

-- 


Reply via email to