EquationTags: drop useless method
parent
3927862d23
commit
1f3ff760e1
|
@ -91,7 +91,7 @@ EquationTags::writeOutput(ostream &output) const
|
|||
void
|
||||
EquationTags::writeLatexOutput(ostream &output, int eqn) const
|
||||
{
|
||||
if (!exists(eqn))
|
||||
if (!eqn_tags.contains(eqn))
|
||||
return;
|
||||
|
||||
auto escape_special_latex_symbols = [](string str)
|
||||
|
@ -125,7 +125,7 @@ EquationTags::writeLatexOutput(ostream &output, int eqn) const
|
|||
void
|
||||
EquationTags::writeJsonAST(ostream &output, int eqn) const
|
||||
{
|
||||
if (!exists(eqn))
|
||||
if (!eqn_tags.contains(eqn))
|
||||
return;
|
||||
|
||||
output << R"(, "tags": {)";
|
||||
|
|
|
@ -103,12 +103,6 @@ public:
|
|||
return getEqnByTag(key, value).has_value();
|
||||
}
|
||||
|
||||
bool
|
||||
exists(int eqn) const
|
||||
{
|
||||
return eqn_tags.contains(eqn);
|
||||
}
|
||||
|
||||
//! Returns true if equation tag with key exists for a given equation
|
||||
bool
|
||||
exists(int eqn, const string &key) const
|
||||
|
|
Loading…
Reference in New Issue