]> git.sesse.net Git - nageru/blobdiff - futatabi/mainwindow.cpp
Remove obsolete member function.
[nageru] / futatabi / mainwindow.cpp
index 70402cc3513d85f6d596e9d671b8c9904ad0c113..22b8d9cda553bd51ce56db7da295dfb35132524a 100644 (file)
@@ -523,26 +523,6 @@ void MainWindow::live_player_clip_done()
        }
 }
 
-pair<Clip, size_t> MainWindow::live_player_get_next_clip()
-{
-       // playlist_clips can only be accessed on the main thread.
-       // Hopefully, we won't have to wait too long for this to come back.
-       //
-       // TODO: If MainWindow is in the process of being destroyed and waiting
-       // for Player to shut down, we could have a deadlock here.
-       promise<pair<Clip, size_t>> clip_promise;
-       future<pair<Clip, size_t>> clip = clip_promise.get_future();
-       post_to_main_thread([&clip_promise] {
-               int row = playlist_clips->get_currently_playing();
-               if (row != -1 && row < int(playlist_clips->size()) - 1) {
-                       clip_promise.set_value(make_pair(*playlist_clips->clip(row + 1), row + 1));
-               } else {
-                       clip_promise.set_value(make_pair(Clip(), 0));
-               }
-       });
-       return clip.get();
-}
-
 static string format_duration(double t)
 {
        int t_ms = lrint(t * 1e3);