From: bhutani.92 Date: Tue, 29 Nov 2016 09:03:54 +0000 (+0530) Subject: Removed Unused code [MP_FEATURE_ADD_TO_INCLUDE_PLAYLIST_TAB] X-Git-Tag: submit/tizen_3.0/20161129.124714~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4d07be8e6c35fc669ab062bbcfa9c065d3f3b8c;p=profile%2Fmobile%2Fapps%2Fnative%2Fmusic-player.git Removed Unused code [MP_FEATURE_ADD_TO_INCLUDE_PLAYLIST_TAB] Change-Id: I56d146fddae8ff7fe26472f068dec352a741010f Signed-off-by: bhutani.92 --- diff --git a/src/view/include/mp-add-track-view.h b/src/view/include/mp-add-track-view.h index 9185cfa..fd25e37 100644 --- a/src/view/include/mp-add-track-view.h +++ b/src/view/include/mp-add-track-view.h @@ -46,9 +46,6 @@ typedef struct /* controlbar tab item */ Elm_Object_Item *ctltab_songs; -#ifdef MP_FEATURE_ADD_TO_INCLUDE_PLAYLIST_TAB - Elm_Object_Item *ctltab_plist; -#endif Elm_Object_Item *ctltab_album; Elm_Object_Item *ctltab_artist; diff --git a/src/view/mp-add-track-view.c b/src/view/mp-add-track-view.c index f39e80c..3300c09 100755 --- a/src/view/mp-add-track-view.c +++ b/src/view/mp-add-track-view.c @@ -38,11 +38,6 @@ static void _mp_add_track_view_change_cb(void *data, Evas_Object *obj, void *eve } else if (it == view->ctltab_artist) { tab = MP_ADD_TRACK_VIEW_TAB_ARTIST; } -#ifdef MP_FEATURE_ADD_TO_INCLUDE_PLAYLIST_TAB - else if (it == view->ctltab_plist) { - tab = MP_ADD_TRACK_VIEW_TAB_PLAYLIST; - } -#endif else if (it == view->ctltab_songs) { tab = MP_ADD_TRACK_VIEW_TAB_SONGS; } else { @@ -67,9 +62,6 @@ _mp_add_track_view_destory_cb(void *thiz) MP_CHECK(view); mp_language_mgr_unregister_object_item(view->ctltab_songs); -#ifdef MP_FEATURE_ADD_TO_INCLUDE_PLAYLIST_TAB - mp_language_mgr_unregister_object_item(view->ctltab_plist); -#endif mp_language_mgr_unregister_object_item(view->ctltab_album); mp_language_mgr_unregister_object_item(view->ctltab_artist); @@ -174,10 +166,6 @@ _mp_add_track_view_content_load(void *view) add_track_view->ctltab_songs = mp_util_toolbar_item_append(obj, NULL, (STR_MP_TRACKS), _mp_add_track_view_change_cb, add_track_view); -#ifdef MP_FEATURE_ADD_TO_INCLUDE_PLAYLIST_TAB - add_track_view->ctltab_plist = - mp_util_toolbar_item_append(obj, NULL, (STR_MP_PLAYLISTS), _mp_add_track_view_change_cb, add_track_view); -#endif add_track_view->ctltab_album = mp_util_toolbar_item_append(obj, NULL, (STR_MP_ALBUMS), _mp_add_track_view_change_cb, add_track_view); @@ -325,17 +313,6 @@ int mp_add_track_view_select_tab(MpAddTrackView_t *view, MpAddTrackViewTab_e tab save_btn = elm_object_item_part_content_get(view->navi_it, "title_right_btn"); elm_object_disabled_set(save_btn, EINA_TRUE); } -#ifdef MP_FEATURE_ADD_TO_INCLUDE_PLAYLIST_TAB - else if (tab == MP_ADD_TRACK_VIEW_TAB_PLAYLIST) { - view->content_to_show = (MpList_t *)mp_playlist_list_create(view->add_track_view_layout); - MP_CHECK_VAL(view->content_to_show, -1); - mp_playlist_list_set_data((MpPlaylistList_t *)view->content_to_show, MP_PLAYLIST_LIST_FUNC, MP_LIST_FUNC_ADD_TRACK, -1); - content = ((MpPlaylistList_t *)view->content_to_show)->layout; - mp_list_view_set_select_all((MpListView_t *)view, FALSE); - save_btn = elm_object_item_part_content_get(view->navi_it, "title_right_btn"); - elm_object_disabled_set(save_btn, EINA_TRUE); - } -#endif else if (tab == MP_ADD_TRACK_VIEW_TAB_SONGS) { view->content_to_show = (MpList_t *)mp_track_list_create(view->add_track_view_layout); MP_CHECK_VAL(view->content_to_show, -1);