From 01c76e23913ea870fb331fc6c747d67f9bdd7f85 Mon Sep 17 00:00:00 2001 From: Christian Gruber Date: Mon, 17 Feb 2020 23:29:28 +0100 Subject: [PATCH] Remove unused template of function for_each_slot_prefix() for_each_slot_prefix() is not used anywhere with two arguments --- libgnucash/engine/kvp-frame.hpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libgnucash/engine/kvp-frame.hpp b/libgnucash/engine/kvp-frame.hpp index c84cf18a4d..253eec3187 100644 --- a/libgnucash/engine/kvp-frame.hpp +++ b/libgnucash/engine/kvp-frame.hpp @@ -235,20 +235,6 @@ struct KvpFrameImpl KvpValue * set_impl (std::string const &, KvpValue *) noexcept; }; -template -void KvpFrame::for_each_slot_prefix(std::string const & prefix, - func_type const & func) const noexcept -{ - std::for_each (m_valuemap.begin(), m_valuemap.end(), - [&prefix,&func](const KvpFrameImpl::map_type::value_type & a) - { - /* Testing for prefix matching */ - if (strncmp(a.first, prefix.c_str(), prefix.size()) == 0) - func (&a.first[prefix.size()], a.second); - } - ); -} - template void KvpFrame::for_each_slot_prefix(std::string const & prefix, func_type const & func, data_type & data) const noexcept