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

commit d085c009e9425f82109ec1f85bd3adba9a1d9dd2
Author: Michel Hermier <herm...@frugalware.org>
Date:   Wed Oct 22 08:06:17 2014 +0200

libpacman: Remove some unused variables/functions.

diff --git a/lib/libpacman/trans.cpp b/lib/libpacman/trans.cpp
index 76730ee..ff60957 100644
--- a/lib/libpacman/trans.cpp
+++ b/lib/libpacman/trans.cpp
@@ -208,12 +208,8 @@ int _pacman_syncpkg_cmp(const void *s1, const void *s2)
return(strcmp(((pmsyncpkg_t *)s1)->pkg_name, ((pmsyncpkg_t *)s2)->pkg_name));
}

-static int pkg_cmp(const void *p1, const void *p2)
-{
-       return(strcmp(((package *)p1)->name(), ((pmsyncpkg_t *)p2)->pkg_name));
-}
-
-static int check_olddelay(Handle *handle)
+static
+int check_olddelay(Handle *handle)
{
Timestamp tm;

@@ -470,10 +466,6 @@ int __pmtrans_t::prepare(FPtrList **data)
_pacman_trans_compute_triggers(this);

if(m_type == PM_TRANS_TYPE_SYNC) {
-       for(auto i = syncpkgs.begin(), end = syncpkgs.end(); i != end; ++i) {
-               pmsyncpkg_t *ps = *i;
-       }
-
if(!(flags & PM_TRANS_FLAG_NODEPS)) {
/* Resolve targets dependencies */
if(resolvedeps(data) == -1) {
@@ -1659,7 +1651,6 @@ int __pmtrans_t::commit(FPtrList **data)
for(auto lp = depends.begin(), lp_end = depends.end(); lp != lp_end; ++lp) {
package_ptr depinfo = NULL;
pmdepend_t depend;
-                       char *data;
if(_pacman_splitdep(*lp, &depend)) {
continue;
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to