EquationTags: drop useless method

master
Sébastien Villemot 2023-01-04 19:27:01 +01:00
parent 3927862d23
commit 1f3ff760e1
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 2 additions and 8 deletions

View File

@ -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": {)";

View File

@ -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