diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc index 7089372e63..a19a62b337 100644 --- a/gtk2_ardour/editor_audio_import.cc +++ b/gtk2_ardour/editor_audio_import.cc @@ -159,7 +159,6 @@ Editor::check_whether_and_how_to_import(string path, bool all_or_nothing) { string wave_name (Glib::path_get_basename(path)); - SourceMap all_sources = _session->get_sources(); bool already_exists = false; uint32_t existing; diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 9b4fbef774..09421a580b 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1356,9 +1356,6 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi private: SourceMap sources; - public: - SourceMap get_sources() { return sources; } - private: int load_sources (const XMLNode& node); XMLNode& get_sources_as_xml ();