From ac9cff461181a88a4a4e8c1b4dd3dbb80c764a17 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 3 Jul 2016 23:21:31 +0200 Subject: [PATCH] Removed unnecessary debug_start_mutex --- src/project.cc | 2 -- src/project.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/project.cc b/src/project.cc index 5d74dcf..6078fa5 100644 --- a/src/project.cc +++ b/src/project.cc @@ -354,7 +354,6 @@ void Project::Clang::debug_start() { auto options_it=debug_options.find(project_path->string()); if(options_it!=debug_options.end() && options_it->second.remote_enabled.get_active()) remote_host=options_it->second.remote_host.get_text(); - std::unique_lock lock(debug_start_mutex); Debug::LLDB::get().start(*run_arguments, *project_path, breakpoints, [this, run_arguments](int exit_status){ debugging=false; Terminal::get().async_print(*run_arguments+" returned: "+std::to_string(exit_status)+'\n'); @@ -554,7 +553,6 @@ void Project::Clang::debug_write(const std::string &buffer) { } void Project::Clang::debug_cancel() { - std::unique_lock lock(debug_start_mutex); Debug::LLDB::get().cancel(); } #endif diff --git a/src/project.h b/src/project.h index b619bf8..6d92112 100644 --- a/src/project.h +++ b/src/project.h @@ -4,7 +4,6 @@ #include #include #include -#include #include #include "tooltips.h" #include "dispatcher.h" @@ -85,7 +84,6 @@ namespace Project { void compile() override; void compile_and_run() override; - std::mutex debug_start_mutex; #ifdef JUCI_ENABLE_DEBUG std::pair debug_get_run_arguments() override; Gtk::Popover *debug_get_options() override;