]> git.lyx.org Git - features.git/commitdiff
Remove unused Counters::copy
authorYuriy Skalko <yuriy.skalko@gmail.com>
Fri, 27 Nov 2020 21:41:06 +0000 (23:41 +0200)
committerYuriy Skalko <yuriy.skalko@gmail.com>
Sat, 28 Nov 2020 22:25:27 +0000 (00:25 +0200)
src/Counters.cpp
src/Counters.h

index 139dc9bcd7bee3a14cca3f93b05144e2f6a8f35e..6376b647f49a0466eab014cd1dbc62de78866c6e 100644 (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 const & numbertype) const
 {
 docstring Counters::labelItem(docstring const & ctr,
                              docstring const & numbertype) const
 {
index e6554a284f37ae150e6fc709eab8c68a6567e98a..ecd68537ae0c14590b82e7e7a99463c30391b2b1 100644 (file)
@@ -160,10 +160,6 @@ public:
        void reset(docstring const & match);
        /// Remove counter \p cnt.
        bool remove(docstring const & cnt);
        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.
         */
        /** returns the expanded string representation of counter \c
         *  c. The \c lang code is used to translate the string.
         */