remove unused label and simplify return value/return path
This commit is contained in:
parent
3b1ec8a43b
commit
745d138b64
@ -1711,7 +1711,6 @@ bool
|
|||||||
SoundFileOmega::check_link_status (const Session* s, const vector<string>& paths)
|
SoundFileOmega::check_link_status (const Session* s, const vector<string>& paths)
|
||||||
{
|
{
|
||||||
std::string tmpdir(Glib::build_filename (s->session_directory().sound_path(), "linktest"));
|
std::string tmpdir(Glib::build_filename (s->session_directory().sound_path(), "linktest"));
|
||||||
bool ret = false;
|
|
||||||
|
|
||||||
if (g_mkdir (tmpdir.c_str(), 0744)) {
|
if (g_mkdir (tmpdir.c_str(), 0744)) {
|
||||||
if (errno != EEXIST) {
|
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());
|
g_rmdir (tmpdir.c_str());
|
||||||
return ret;
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
SoundFileChooser::SoundFileChooser (string title, ARDOUR::Session* s)
|
SoundFileChooser::SoundFileChooser (string title, ARDOUR::Session* s)
|
||||||
|
Loading…
Reference in New Issue
Block a user