Remove unused kvp function

This commit is contained in:
lmat 2017-11-28 17:15:07 -05:00
parent 4a88f05d11
commit 29ad8ff9b0
2 changed files with 0 additions and 18 deletions

View File

@ -192,12 +192,6 @@ struct KvpFrameImpl
*/
KvpValue* get_slot(Path keys) noexcept;
/**
* proc is called with each of the immediate contents of this frame, passing it the key,
* value, and specified data.
*/
void for_each_slot(void (*proc)(const char *key, KvpValue *, void *data), void* data) const noexcept;
/** The function should be of the form:
* <anything> func (char const *, KvpValue *, data_type &);
* Do not pass nullptr as the function.

View File

@ -175,18 +175,6 @@ void qof_instance_slot_path_delete_if_empty (QofInstance const *, std::vector<st
std::vector <std::pair <std::string, KvpValue*>>
qof_instance_get_slots_prefix (QofInstance const *, std::string const & prefix);
/* Don't pass nullptr as the function */
template<typename func_type, typename data_type>
void qof_instance_foreach_slot_temp (QofInstance const * inst, std::string const & path,
func_type const & func, data_type & data)
{
auto slot = inst->kvp_data->get_slot({path});
if (slot == nullptr || slot->get_type() != KvpValue::Type::FRAME)
return;
auto frame = slot->get<KvpFrame*>();
frame->for_each_slot(func, data);
}
/**
* Similar to qof_instance_foreach_slot, but we don't traverse the depth of the key value frame,
* we only check the root level for keys that match the specified prefix.