From 00d07d67326e7e2b65d17a2054f61a72fe34fc7d Mon Sep 17 00:00:00 2001 From: Yuriy Skalko Date: Fri, 27 Nov 2020 23:41:06 +0200 Subject: [PATCH] Remove unused Counters::copy --- src/Counters.cpp | 10 ---------- src/Counters.h | 4 ---- 2 files changed, 14 deletions(-) diff --git a/src/Counters.cpp b/src/Counters.cpp index 139dc9bcd7..6376b647f4 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 e6554a284f..ecd68537ae 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. */ -- 2.39.2