chore(util/sexpr/format): remove unnecessary method
This commit is contained in:
parent
6872761c67
commit
accc9dc38b
2 changed files with 1 additions and 3 deletions
|
@ -22,7 +22,7 @@ format to_pos(optional<expr> const & e, pos_info_provider const * p) {
|
||||||
if (!p || !e)
|
if (!p || !e)
|
||||||
return format();
|
return format();
|
||||||
format f = p->pp(*e);
|
format f = p->pp(*e);
|
||||||
if (!f)
|
if (f.is_nil_fmt())
|
||||||
return format();
|
return format();
|
||||||
return f + space();
|
return f + space();
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,8 +185,6 @@ public:
|
||||||
bool is_nil_fmt() const { return kind() == format_kind::NIL; }
|
bool is_nil_fmt() const { return kind() == format_kind::NIL; }
|
||||||
unsigned hash() const { return m_value.hash(); }
|
unsigned hash() const { return m_value.hash(); }
|
||||||
|
|
||||||
explicit operator bool() const { return static_cast<bool>(m_value); }
|
|
||||||
|
|
||||||
friend format compose(format const & f1, format const & f2);
|
friend format compose(format const & f1, format const & f2);
|
||||||
friend format nest(int i, format const & f);
|
friend format nest(int i, format const & f);
|
||||||
friend format highlight(format const & f, format::format_color const c);
|
friend format highlight(format const & f, format::format_color const c);
|
||||||
|
|
Loading…
Reference in a new issue