From cbd0ba90c63ed466c6aceb925facf7dbdf2b7824 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Wed, 6 Jan 2021 11:30:12 +1100 Subject: [PATCH] pt import: Fix two warnings from valgrind - Remove uninitialised unused variable - Remove jump condition on uninitialised variable --- gtk2_ardour/editor_pt_import.cc | 2 -- gtk2_ardour/pt_import_selector.cc | 4 ---- 2 files changed, 6 deletions(-) diff --git a/gtk2_ardour/editor_pt_import.cc b/gtk2_ardour/editor_pt_import.cc index befa5488af..8c9ac6c82f 100644 --- a/gtk2_ardour/editor_pt_import.cc +++ b/gtk2_ardour/editor_pt_import.cc @@ -76,8 +76,6 @@ using std::string; void Editor::external_pt_dialog () { - std::string ptpath; - if (_session == 0) { MessageDialog msg (_("You can't import a PT session until you have a session loaded.")); msg.run (); diff --git a/gtk2_ardour/pt_import_selector.cc b/gtk2_ardour/pt_import_selector.cc index 318da1e355..23f7411d13 100644 --- a/gtk2_ardour/pt_import_selector.cc +++ b/gtk2_ardour/pt_import_selector.cc @@ -46,10 +46,6 @@ PTImportSelector::PTImportSelector (PTFFormat& ptf) : { _ptf = &ptf; - if (!_session_rate) { - Gtk::Dialog::response(RESPONSE_CANCEL); - } - set_size_request (800, 450); ptimport_import_button.set_size_request (90, 35); ptimport_cancel_button.set_size_request (90, 35);