From 3d170d41273cf2981f78c19b6ad602e958d373d7 Mon Sep 17 00:00:00 2001 From: casey langen Date: Tue, 6 Oct 2020 02:28:40 -0700 Subject: [PATCH] Removed some old testing code --- src/musikcube/app/layout/LyricsLayout.cpp | 6 +----- src/musikcube/app/layout/LyricsLayout.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/musikcube/app/layout/LyricsLayout.cpp b/src/musikcube/app/layout/LyricsLayout.cpp index 9e77ae94b..fecb0383c 100644 --- a/src/musikcube/app/layout/LyricsLayout.cpp +++ b/src/musikcube/app/layout/LyricsLayout.cpp @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include @@ -72,9 +71,6 @@ LyricsLayout::LyricsLayout(PlaybackService& playback, ILibraryPtr library) this->AddWindow(this->infoText); this->LoadLyricsForCurrentTrack(); - - this->remoteLibrary = musik::core::library::RemoteLibrary::Create("remote", 0xdeadbeef); - this->remoteLibrary->SetMessageQueue(Window::MessageQueue()); } void LyricsLayout::OnLayout() { @@ -141,7 +137,7 @@ void LyricsLayout::LoadLyricsForCurrentTrack() { this->SetState(State::Loading); auto trackExternalId = track->GetString("external_id"); auto lyricsDbQuery = std::make_shared(trackExternalId); - this->remoteLibrary->Enqueue(lyricsDbQuery, 0, [this, lyricsDbQuery, track](auto q) { + this->library->Enqueue(lyricsDbQuery, 0, [this, lyricsDbQuery, track](auto q) { auto localLyrics = lyricsDbQuery->GetResult(); if (localLyrics.size()) { this->OnLyricsLoaded(track, localLyrics); diff --git a/src/musikcube/app/layout/LyricsLayout.h b/src/musikcube/app/layout/LyricsLayout.h index 3485c1eac..93b64b288 100644 --- a/src/musikcube/app/layout/LyricsLayout.h +++ b/src/musikcube/app/layout/LyricsLayout.h @@ -36,7 +36,7 @@ namespace musik { namespace cube { void UpdateAdapter(const std::string& lyrics); State state { State::NotPlaying }; - musik::core::ILibraryPtr library, remoteLibrary; + musik::core::ILibraryPtr library; musik::core::audio::PlaybackService& playback; std::shared_ptr adapter; std::shared_ptr listView;