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

commit ed49029539c11b42f8eb60986e20d75a2205d9f4
Author: Michel Hermier <[email protected]>
Date:   Wed Oct 8 12:37:36 2014 +0200

libpacman: Remove now unused code.

diff --git a/lib/libpacman/fmath.h b/lib/libpacman/fmath.h
deleted file mode 100644
index 30305a3..0000000
--- a/lib/libpacman/fmath.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- *  fmath.h
- *
- *  Copyright (c) 2013 by Michel Hermier <[email protected]>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- *  USA.
- */
-#ifndef _F_MATH_H
-#define _F_MATH_H
-
-#include <stdint.h>
-
-#define __f_intcmp(v, z) ((v) == (z) ? 0 : (v) < (z) ? -1 : 1)
-
-static inline
-int f_signp(intptr_t p)
-{
-       return __f_intcmp(p, 0);
-}
-
-#endif /* _F_MATH_H */
-
-/* vim: set ts=2 sw=2 noet: */
diff --git a/lib/libpacman/fstdlib.h b/lib/libpacman/fstdlib.h
index e9c2156..7d3df62 100644
--- a/lib/libpacman/fstdlib.h
+++ b/lib/libpacman/fstdlib.h
@@ -25,7 +25,6 @@
#include <stdlib.h>

#include "util/log.h"
-#include "fmath.h"
#include "util.h"

static inline
@@ -48,18 +47,6 @@ void *f_zalloc(size_t size)
return ptr;
}

-static inline
-intptr_t f_diffptr(const void *ptr1, const void *ptr2)
-{
-       return (intptr_t)ptr1 - (intptr_t)ptr2;
-}
-
-static inline
-int f_ptrcmp(const void *ptr1, const void *ptr2)
-{
-       return f_signp(f_diffptr(ptr1, ptr2));
-}
-
#define F_PATH_NOCHECK  (1<<0)
#define F_PATH_RELATIVE (1<<1)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to