diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 61309719db..850adb93a8 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -1711,7 +1711,6 @@ bool SoundFileOmega::check_link_status (const Session* s, const vector& paths) { std::string tmpdir(Glib::build_filename (s->session_directory().sound_path(), "linktest")); - bool ret = false; if (g_mkdir (tmpdir.c_str(), 0744)) { if (errno != EEXIST) { @@ -1730,11 +1729,9 @@ SoundFileOmega::check_link_status (const Session* s, const vector& paths } } - ret = true; - - out: g_rmdir (tmpdir.c_str()); - return ret; + + return true; } SoundFileChooser::SoundFileChooser (string title, ARDOUR::Session* s)