Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Jan 15, 2025
1 parent 528a349 commit 93f540b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "antares-xpansion/lpnamer/problem_modifier/MPSFileProblemProviderAdapter.h"

#include <utility>

#include "antares-xpansion/multisolver_interface/SolverConfig.h"
#include "antares-xpansion/multisolver_interface/SolverFactory.h"
std::shared_ptr<Problem> MPSFileProblemProviderAdapter::provide_problem(
const std::string& solver_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#pragma once

#include "antares-xpansion/lpnamer/problem_modifier/IProblemProviderPort.h"
#include "antares-xpansion/multisolver_interface/SolverConfig.h"
class MPSFileProblemProviderAdapter : public IProblemProviderPort {
public:
MPSFileProblemProviderAdapter(std::filesystem::path root,
Expand Down
14 changes: 0 additions & 14 deletions src/cpp/multisolver_interface/SolverConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,3 @@ void SolverConfig::init(std::string solver_name) {
save_restore_supported = save_restore_support.at(name);
use_save_restore = save_restore_supported;
}
std::filesystem::path SolverConfig::FileName(const std::string& problemName,
std::string solverName) {
const std::string save_ext = ".svf";
const std::string default_ext = ".mps";
if (problemName == "master") return {"master"};
SolverConfig solverConfig(std::move(solverName));
std::filesystem::path path{problemName};
if (solverConfig.use_save_restore) {
path.replace_extension(save_ext);
} else {
path.replace_extension(default_ext);
}
return path;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class SolverConfig {
bool use_save_restore{false};

public:

static std::filesystem::path FileName(const std::string& problemName, std::string solverName);
explicit SolverConfig(std::string name);
SolverConfig(SolverConfig&&) = default;
SolverConfig(const SolverConfig&) = default;
Expand Down

0 comments on commit 93f540b

Please sign in to comment.