Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=366df97382c1c5a70d8e09667e5ddaeb8ac445e4

commit 366df97382c1c5a70d8e09667e5ddaeb8ac445e4
Author: Michel Hermier <[email protected]>
Date:   Thu May 1 09:06:30 2014 +0200

libpacman: Remove _pacman_pkg_fini leftover.

diff --git a/lib/libpacman/package.cpp b/lib/libpacman/package.cpp
index 3c36e04..6822417 100644
--- a/lib/libpacman/package.cpp
+++ b/lib/libpacman/package.cpp
@@ -191,28 +191,6 @@ int _pacman_pkg_delete(Package *self)
return 0;
}

-int _pacman_pkg_fini(Package *self)
-{
-       ASSERT(self != NULL, RET_ERR(PM_ERR_WRONG_ARGS, -1));
-
-       FREELIST(self->license);
-       FREELIST(self->desc_localized);
-       FREELIST(self->files);
-       FREELIST(self->backup);
-       FREELIST(self->depends);
-       FREELIST(self->removes);
-       FREELIST(self->conflicts);
-       FREELIST(self->requiredby);
-       FREELIST(self->groups);
-       FREELIST(self->m_provides);
-       FREELIST(self->replaces);
-       FREELIST(self->triggers);
-       if(self->origin == PKG_FROM_FILE) {
-               FREE(self->data);
-       }
-       return 0;
-}
-
/* Helper function for comparing packages
*/
int _pacman_pkg_cmp(const void *p1, const void *p2)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to