From 745d138b64a9b82bc0dfc35f67a29f8e4ba9b493 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 10 Oct 2019 15:25:13 -0600 Subject: [PATCH] remove unused label and simplify return value/return path --- gtk2_ardour/sfdb_ui.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)