mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Remove unused Counters::copy
This commit is contained in:
parent
9b0cd3c970
commit
00d07d6732
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user