refactor(kernel/error_msgs): remove dead code

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-07-28 06:52:59 -07:00
parent acf8a4261b
commit 555425539d
2 changed files with 0 additions and 11 deletions

View file

@ -72,16 +72,6 @@ format pp_def_type_mismatch(formatter const & fmt, name const & n, expr const &
return r; return r;
} }
format pp_type_mismatch(formatter const & fmt, expr const & expected_type, expr const & given_type) {
format expected_fmt, given_fmt;
std::tie(expected_fmt, given_fmt) = pp_until_different(fmt, expected_type, given_type);
format r("type mismatch, expected type:");
r += expected_fmt;
r += compose(line(), format("given type:"));
r += given_fmt;
return r;
}
static format pp_until_meta_visible(formatter const & fmt, expr const & e, list<options> extra) { static format pp_until_meta_visible(formatter const & fmt, expr const & e, list<options> extra) {
formatter fmt1 = fmt; formatter fmt1 = fmt;
while (true) { while (true) {

View file

@ -13,7 +13,6 @@ format pp_type_expected(formatter const & fmt, expr const & e);
format pp_function_expected(formatter const & fmt, expr const & e); format pp_function_expected(formatter const & fmt, expr const & e);
format pp_app_type_mismatch(formatter const & fmt, expr const & app, expr const & expected_type, expr const & given_type); format pp_app_type_mismatch(formatter const & fmt, expr const & app, expr const & expected_type, expr const & given_type);
format pp_def_type_mismatch(formatter const & fmt, name const & n, expr const & expected_type, expr const & given_type); format pp_def_type_mismatch(formatter const & fmt, name const & n, expr const & expected_type, expr const & given_type);
format pp_type_mismatch(formatter const & fmt, expr const & expected_type, expr const & given_type);
format pp_decl_has_metavars(formatter const & fmt, name const & n, expr const & e, bool is_type); format pp_decl_has_metavars(formatter const & fmt, name const & n, expr const & e, bool is_type);
/** \brief Set a list extra configuration options that are used to try to distinguish error such as given/expected type mismatch /** \brief Set a list extra configuration options that are used to try to distinguish error such as given/expected type mismatch