Remove unused function. 39/37339/1
authorKim Tae Soo <taesoo46.kim@samsung.com>
Tue, 24 Mar 2015 23:12:17 +0000 (08:12 +0900)
committerKim Tae Soo <taesoo46.kim@samsung.com>
Tue, 24 Mar 2015 23:12:17 +0000 (08:12 +0900)
Change-Id: I51017df2b1010d9e62eeacf1a4105012bb4e9d26
Signed-off-by: Kim Tae Soo <taesoo46.kim@samsung.com>
include/music-controller.h
src/playback/music-controller.cpp

index 4accf5c..153d51e 100644 (file)
@@ -86,7 +86,6 @@ public:
        bool RemoveListener(IMusicControllerListener *listener);
 
        bool GetCurrentSongIndex(int *ind);
-       bool SetCurrentSongIndex(int ind);
        bool GetTotalSongs(int *ts);
        bool GetSonginfoFromIndex(int index, CSongInfo **const csinfo);
        
index d521f1a..e7851c5 100644 (file)
@@ -458,26 +458,6 @@ bool CMusicController::GetCurrentSongIndex(int *ind)
 }
 
 
-bool CMusicController::SetCurrentSongIndex(int index)
-{
-       ASSERT(m);
-
-       if (!m->pPlaylist->FlagCreate()) {
-               _ERR("NULL received");
-               return false;
-       }
-
-       if (!m->pPlaylist->SetCurSongIndex(index)) {
-               _ERR(" playlist get current song index failed");
-               return false;
-       }
-
-       m->initial_index = index;
-
-       return true;
-}
-
-
 bool CMusicController::GetTotalSongs(int *ts)
 {
        ASSERT(m);
@@ -641,6 +621,8 @@ bool CMusicController::PlayIndexSong(int index)
 
        Start();
 
+       m->initial_index = index;
+
        return true;
 }