Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
preprocessor
Commits
1f3ff760
Verified
Commit
1f3ff760
authored
Jan 4, 2023
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
EquationTags: drop useless method
parent
3927862d
No related branches found
No related tags found
No related merge requests found
Pipeline
#7960
passed
Jan 4, 2023
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/EquationTags.cc
+2
-2
2 additions, 2 deletions
src/EquationTags.cc
src/EquationTags.hh
+0
-6
0 additions, 6 deletions
src/EquationTags.hh
with
2 additions
and
8 deletions
src/EquationTags.cc
+
2
−
2
View file @
1f3ff760
...
...
@@ -91,7 +91,7 @@ EquationTags::writeOutput(ostream &output) const
void
EquationTags
::
writeLatexOutput
(
ostream
&
output
,
int
eqn
)
const
{
if
(
!
e
xist
s
(
eqn
))
if
(
!
e
qn_tags
.
contain
s
(
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
(
!
e
xist
s
(
eqn
))
if
(
!
e
qn_tags
.
contain
s
(
eqn
))
return
;
output
<<
R"(, "tags": {)"
;
...
...
This diff is collapsed.
Click to expand it.
src/EquationTags.hh
+
0
−
6
View file @
1f3ff760
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment