Revision: 1783
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1783&view=rev
Author: teuf
Date: 2007-11-14 10:12:10 -0800 (Wed, 14 Nov 2007)
Log Message:
-----------
* src/itdb_photoalbum.c: use g_list_remove all instead of an
inefficient combination of g_list_find + g_list_remove
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/src/itdb_photoalbum.c
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2007-11-14 15:02:08 UTC (rev 1782)
+++ libgpod/trunk/ChangeLog 2007-11-14 18:12:10 UTC (rev 1783)
@@ -1,3 +1,8 @@
+2007-11-14 Christophe <[EMAIL PROTECTED]>
+
+ * src/itdb_photoalbum.c: use g_list_remove all instead of an
+ inefficient combination of g_list_find + g_list_remove
+
2007-11-14 Jorg Schuler <jcsjcs at users.sourceforge.net>
* src/itdb_photoalbum.c (itdb_photodb_photoalbum_remove): make
Modified: libgpod/trunk/src/itdb_photoalbum.c
===================================================================
--- libgpod/trunk/src/itdb_photoalbum.c 2007-11-14 15:02:08 UTC (rev 1782)
+++ libgpod/trunk/src/itdb_photoalbum.c 2007-11-14 18:12:10 UTC (rev 1783)
@@ -615,10 +615,7 @@
for (it = db->photoalbums; it != NULL; it = it->next)
{
Itdb_PhotoAlbum *_album = it->data;
- while (g_list_find (_album->members, photo))
- {
- _album->members = g_list_remove (_album->members, photo);
- }
+ _album->members = g_list_remove_all (_album->members, photo);
}
/* Remove the photo from the image list */
db->photos = g_list_remove (db->photos, photo);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2