From 0470cdc7a4959b39e3b5e707aabe1b24f358b6ba Mon Sep 17 00:00:00 2001 From: Henri Casanova Date: Thu, 18 Jun 2020 09:26:58 -1000 Subject: [PATCH] C++ cleanup --- .../services/compute/bare_metal/BareMetalComputeService.cpp | 2 +- .../services/compute/htcondor/HTCondorComputeService.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wrench/services/compute/bare_metal/BareMetalComputeService.cpp b/src/wrench/services/compute/bare_metal/BareMetalComputeService.cpp index 82244aee6b..d1f965bfdc 100644 --- a/src/wrench/services/compute/bare_metal/BareMetalComputeService.cpp +++ b/src/wrench/services/compute/bare_metal/BareMetalComputeService.cpp @@ -78,7 +78,7 @@ namespace wrench { * @return a tuple * @throw std::invalid_argument */ - static std::tuple parseResourceSpec(const std::string spec) { + static std::tuple parseResourceSpec(const std::string &spec) { std::vector tokens; boost::algorithm::split(tokens, spec, boost::is_any_of(":")); switch (tokens.size()) { diff --git a/src/wrench/services/compute/htcondor/HTCondorComputeService.cpp b/src/wrench/services/compute/htcondor/HTCondorComputeService.cpp index 6441e413dd..767e8adbcd 100644 --- a/src/wrench/services/compute/htcondor/HTCondorComputeService.cpp +++ b/src/wrench/services/compute/htcondor/HTCondorComputeService.cpp @@ -339,16 +339,12 @@ namespace wrench { this->central_manager->submitStandardJob(job, service_specific_args); // send positive answer -// try { S4U_Mailbox::dputMessage( answer_mailbox, new ComputeServiceSubmitStandardJobAnswerMessage( job, this->getSharedPtr(), true, nullptr, this->getMessagePayloadValue( HTCondorComputeServiceMessagePayload::SUBMIT_STANDARD_JOB_ANSWER_MESSAGE_PAYLOAD))); return; -// } catch (std::shared_ptr &cause) { -// return; -// } } /**