@@ -45,13 +45,3 @@ std::size_t dds::lev_edit_distance(std::string_view a, std::string_view b) noexc | |||
return matrix.back().back(); | |||
} | |||
bool lm_reject_dym::operator()(std::string_view context, | |||
std::string_view key, | |||
std::string_view) const { | |||
assert(candidates.size() > 0); | |||
throw_user_error<errc::invalid_config_key>("{}: Unknown key '{}' (Did you meann '{}'?)", | |||
context, | |||
key, | |||
*did_you_mean(key, candidates)); | |||
} |
@@ -58,11 +58,4 @@ did_you_mean(std::string_view given, std::initializer_list<std::string_view> str | |||
return did_you_mean(given, ranges::views::all(strings)); | |||
} | |||
struct lm_reject_dym { | |||
std::initializer_list<std::string_view> candidates; | |||
[[noreturn]] bool | |||
operator()(std::string_view context, std::string_view key, std::string_view value) const; | |||
}; | |||
} // namespace dds |