diff --git a/opm/simulators/flow/Main.hpp b/opm/simulators/flow/Main.hpp index 8dbe16b92..1f067981b 100644 --- a/opm/simulators/flow/Main.hpp +++ b/opm/simulators/flow/Main.hpp @@ -77,7 +77,6 @@ #include #include -#include #include #include #include @@ -539,34 +538,6 @@ private: return true; } - std::filesystem::path simulationCaseName_(const std::string& casename) - { - namespace fs = ::std::filesystem; - - auto exists = [](const fs::path& f) - { - return (fs::exists(f) && fs::is_regular_file(f)) - || (fs::is_symlink(f) && - fs::is_regular_file(fs::read_symlink(f))); - }; - - auto simcase = fs::path { casename }; - - if (exists(simcase)) { - return simcase; - } - - for (const auto& ext : { std::string("DATA"), std::string("data") }) { - if (exists(simcase.replace_extension(ext))) { - return simcase; - } - } - - throw std::invalid_argument { - "Cannot find input case '" + casename + '\'' - }; - } - // This function is an extreme special case, if the program has been invoked // *exactly* as: //