commit 00d07d67326e7e2b65d17a2054f61a72fe34fc7d
Author: Yuriy Skalko <[email protected]>
Date: Fri Nov 27 23:41:06 2020 +0200
Remove unused Counters::copy
---
src/Counters.cpp | 10 ----------
src/Counters.h | 4 ----
2 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/src/Counters.cpp b/src/Counters.cpp
index 139dc9b..6376b64 100644
--- a/src/Counters.cpp
+++ b/src/Counters.cpp
@@ -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 const & numbertype) const
{
diff --git a/src/Counters.h b/src/Counters.h
index e6554a2..ecd6853 100644
--- a/src/Counters.h
+++ b/src/Counters.h
@@ -160,10 +160,6 @@ public:
void reset(docstring const & match);
/// Remove counter \p 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
* c. The \c lang code is used to translate the string.
*/
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs