Remove unused Counters::copy

This commit is contained in:
Yuriy Skalko 2020-11-27 23:41:06 +02:00
parent 9b0cd3c970
commit 00d07d6732
2 changed files with 0 additions and 14 deletions

View File

@ -413,16 +413,6 @@ bool Counters::remove(docstring const & cnt)
} }
void Counters::copy(Counters const & from, Counters & to, docstring const & match) const
{
for (auto const & ctr : counterList_) {
if (ctr.first.find(match) != string::npos || match == "") {
to.set(ctr.first, from.value(ctr.first));
}
}
}
docstring Counters::labelItem(docstring const & ctr, docstring Counters::labelItem(docstring const & ctr,
docstring const & numbertype) const docstring const & numbertype) const
{ {

View File

@ -160,10 +160,6 @@ public:
void reset(docstring const & match); void reset(docstring const & match);
/// Remove counter \p cnt. /// Remove counter \p cnt.
bool remove(docstring const & cnt); bool remove(docstring const & cnt);
/// Copy counters whose name matches match from the &from to
/// the &to array of counters. Empty string matches all.
void copy(Counters const & from, Counters & to,
docstring const & match = docstring()) const;
/** returns the expanded string representation of counter \c /** returns the expanded string representation of counter \c
* c. The \c lang code is used to translate the string. * c. The \c lang code is used to translate the string.
*/ */