Remove unused qof_collection_from_glist function.

pull/2169/head
Stefan Koch 4 months ago
parent b5185e1823
commit 9079d87307

@ -220,26 +220,6 @@ qof_collection_lookup_entity (const QofCollection *col, const GncGUID * guid)
return ent;
}
QofCollection *
qof_collection_from_glist (QofIdType type, const GList *glist)
{
QofCollection *coll;
QofInstance *ent;
const GList *list;
coll = qof_collection_new(type);
for (list = glist; list != NULL; list = list->next)
{
ent = QOF_INSTANCE(list->data);
if (FALSE == qof_collection_add_entity(coll, ent))
{
qof_collection_destroy(coll);
return NULL;
}
}
return coll;
}
guint
qof_collection_count (const QofCollection *col)
{

@ -203,19 +203,6 @@ not in the other.
gint
qof_collection_compare (QofCollection *target, QofCollection *merge);
/** \brief Create a secondary collection from a GList
@param type The QofIdType of the QofCollection \b and of
\b all entities in the GList.
@param glist GList of entities of the same QofIdType.
@return NULL if any of the entities fail to match the
QofCollection type, else a pointer to the collection
on success.
*/
QofCollection*
qof_collection_from_glist (QofIdType type, const GList *glist);
/** @} */
/** @} */

Loading…
Cancel
Save