Skip to content
Snippets Groups Projects
Verified Commit 1f3ff760 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

EquationTags: drop useless method

parent 3927862d
No related branches found
No related tags found
No related merge requests found
Pipeline #7960 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment