mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-24 23:27:39 -05:00
Remove unused qof_collection_from_glist function.
This commit is contained in:
1 parent
b5185e1823
commit
9079d87307
2 files changed
-33
No files matched your search
@@ -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);
|
||||
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in new issue
Block a user