Remove unnecessary code 54/37554/1
authorKim Tae Soo <taesoo46.kim@samsung.com>
Tue, 31 Mar 2015 02:28:09 +0000 (11:28 +0900)
committerKim Tae Soo <taesoo46.kim@samsung.com>
Tue, 31 Mar 2015 02:28:09 +0000 (11:28 +0900)
Change-Id: Ic05e86f66b8256c2da89b0e720122d271d6876dd
Signed-off-by: Kim Tae Soo <taesoo46.kim@samsung.com>
include/playback-view.h
src/views/playback-view.cpp

index ac66ba6..7491bf0 100644 (file)
@@ -32,7 +32,6 @@ class CPlaybackView : public CBaseView,
        public IUnpressedListener,
        public IChangedListener,
        public IRealizedListener,
-       public IUnrealizedListener,
        public IActivatedListener,
        public IMusicControllerListener {
 private:
@@ -49,9 +48,6 @@ private:
 
        static void sm_CbItemSelect(void *data, Evas_Object *obj, void *event_info);
 
-       static void sm_CbGenlistItemCheckClicked(void *data, Elm_Object_Item *it, const char *emission, const char *source);
-       void m_OnGenlistItemCheckClicked(Elm_Object_Item *it, const char *emission, const char *source);
-
        static void sm_CbCtxtUpdate(void *dt, enum EActionType type, int lid);
        void m_OnCtxtUpdate(EActionType type, int lid);
 
@@ -136,7 +132,7 @@ public:
        CPlaybackView(const char *pViewId) : CBaseView(pViewId), 
                IMouseClickedListener(this), IMouseMoveListener(this),
                IPressedListener(this), IUnpressedListener(this), IChangedListener(this),
-               IRealizedListener(this), IUnrealizedListener(this), IActivatedListener(this),
+               IRealizedListener(this), IActivatedListener(this),
                m(0) {}
        virtual ~CPlaybackView() {}
 
@@ -154,7 +150,6 @@ public:
        virtual void OnUnpressed(int id, Evas_Object *obj);
        virtual void OnChanged(int id, Evas_Object *obj);
        virtual void OnRealized(int id, Evas_Object *obj, Elm_Object_Item *item);
-       virtual void OnUnrealized(int id, Evas_Object *obj, Elm_Object_Item *item);
        virtual void OnActivated(int id, Evas_Object *obj, Elm_Object_Item *item);
 
        virtual void OnComplete(void);
index a5e2000..82ca238 100644 (file)
@@ -246,34 +246,6 @@ void CPlaybackView::sm_CbItemSelect(void *data, Evas_Object *obj, void *event_in
 }
 
 
-void CPlaybackView::sm_CbGenlistItemCheckClicked(void *data, Elm_Object_Item *it, const char *emission, const char *source)
-{
-       CPlaybackView *root = (CPlaybackView*)data;
-       if (root)
-               root->m_OnGenlistItemCheckClicked(it, emission, source);
-}
-
-
-void CPlaybackView::m_OnGenlistItemCheckClicked(Elm_Object_Item *it, const char *emission, const char *source)
-{
-       SItemInfo *itinfo = NULL;
-
-       if (!it || !emission)
-               return;
-
-       itinfo = m_FindItemInfoFromItem(m->elInfo, it);
-       if (!itinfo) {
-               _ERR(" no item info found ");
-               return;
-       }
-
-       if (itinfo->edit_mode) {
-               m_UpdateItemCheck(itinfo);
-               m_DisableEditButtons(false);
-       }
-}
-
-
 void CPlaybackView::sm_CbCtxtUpdate(void *dt, enum EActionType type, int lid)
 {
        CPlaybackView *root = (CPlaybackView *)dt;
@@ -1441,8 +1413,8 @@ void CPlaybackView::m_AddGenlist(void)
        elm_genlist_select_mode_set(genlist, ELM_OBJECT_SELECT_MODE_ALWAYS);
        elm_genlist_multi_select_set(genlist, EINA_FALSE);
 
-       Connect(genlist, EO_PLAYLIST, TYPE_REALIZED | TYPE_UNREALIZED |
-               TYPE_MOUSE_MOVE | TYPE_KEY_DOWN | TYPE_ACTIVATED);
+       Connect(genlist, EO_PLAYLIST, TYPE_REALIZED | TYPE_MOUSE_MOVE |
+               TYPE_KEY_DOWN | TYPE_ACTIVATED);
 
        evas_object_show(genlist);
        m->eoPlaylist = genlist;
@@ -2096,10 +2068,6 @@ void CPlaybackView::OnRealized(int id, Evas_Object *obj, Elm_Object_Item *item)
        switch (id) {
        case EO_PLAYLIST:
                {
-                       elm_object_item_signal_callback_add(item,
-                               MUSIC_SIGNAL_CHECK_CLICKED, MUSIC_PLAYBACK_VIEW,
-                               sm_CbGenlistItemCheckClicked, this);
-
                        int index = elm_genlist_item_index_get(item);
                        if ((index & 1) == 1)
                                elm_object_item_signal_emit(item,
@@ -2139,21 +2107,6 @@ void CPlaybackView::OnRealized(int id, Evas_Object *obj, Elm_Object_Item *item)
 }
 
 
-void CPlaybackView::OnUnrealized(int id, Evas_Object *obj, Elm_Object_Item *item)
-{
-       switch (id) {
-       case EO_PLAYLIST:
-               elm_object_item_signal_callback_del(item,
-                       MUSIC_SIGNAL_CHECK_CLICKED, MUSIC_PLAYBACK_VIEW,
-                       sm_CbGenlistItemCheckClicked);
-               break;
-
-       default:
-               break;
-       }
-}
-
-
 void CPlaybackView::OnActivated(int id, Evas_Object *obj, Elm_Object_Item *item)
 {
        switch (id) {