remove unused label and simplify return value/return path

This commit is contained in:
Paul Davis 2019-10-10 15:25:13 -06:00
parent 3b1ec8a43b
commit 745d138b64
1 changed files with 2 additions and 5 deletions

View File

@ -1711,7 +1711,6 @@ bool
SoundFileOmega::check_link_status (const Session* s, const vector<string>& 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<string>& paths
}
}
ret = true;
out:
g_rmdir (tmpdir.c_str());
return ret;
return true;
}
SoundFileChooser::SoundFileChooser (string title, ARDOUR::Session* s)