From: Arnaud Giersch Date: Thu, 12 Apr 2018 16:26:31 +0000 (+0200) Subject: Kill unused exception class. X-Git-Tag: v3.20~437 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5ee69f22d5f6ab219b59132ade49e92978ecdc21?ds=inline;hp=293f7d78e58faa1c63627834992f1d3231038900 Kill unused exception class. --- diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 9df266c554..6f3283562a 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -25,15 +25,6 @@ namespace simgrid { namespace config { -class XBT_PUBLIC missing_key_error : public std::runtime_error { -public: - explicit missing_key_error(const std::string& what) - : std::runtime_error(what) {} - explicit missing_key_error(const char* what) - : std::runtime_error(what) {} - ~missing_key_error() override; -}; - template inline std::string to_string(T&& value) { diff --git a/src/xbt/config.cpp b/src/xbt/config.cpp index 2990351d50..34503ee9ed 100644 --- a/src/xbt/config.cpp +++ b/src/xbt/config.cpp @@ -35,8 +35,6 @@ XBT_EXPORT_NO_IMPORT xbt_cfg_t simgrid_config = nullptr; namespace simgrid { namespace config { -missing_key_error::~missing_key_error() = default; - namespace { const char* true_values[] = {