summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-02-09 03:05:53 +0100
committerDave Reisner <d@falconindy.com>2011-03-09 21:22:32 +0100
commitf2eac18a6ec62db3ec53744064e05416024c1b30 (patch)
tree7291505dff3663bf351a0cd37537e51cf010aaa5 /lib/libalpm/error.c
parent4ad4527d104c915efa912d3e1e3a543fad7aca34 (diff)
downloadpacman-f2eac18a6ec62db3ec53744064e05416024c1b30.tar.gz
pacman-f2eac18a6ec62db3ec53744064e05416024c1b30.tar.xz
Remove all traces of libfetch
Signed-off-by: Dave Reisner <d@falconindy.com>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r--lib/libalpm/error.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index 19c7d92c..cf98cc75 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -20,22 +20,10 @@
#include "config.h"
-/* TODO: needed for the libfetch stuff, unfortunately- we should kill it */
-#include <stdio.h>
-/* the following two are needed for FreeBSD's libfetch */
-#include <limits.h> /* PATH_MAX */
-#if defined(HAVE_SYS_PARAM_H)
-#include <sys/param.h> /* MAXHOSTNAMELEN */
-#endif
-
#ifdef HAVE_LIBCURL
#include <curl/curl.h>
#endif
-#ifdef HAVE_LIBFETCH
-#include <fetch.h> /* fetchLastErrString */
-#endif
-
/* libalpm */
#include "util.h"
#include "alpm.h"
@@ -152,13 +140,6 @@ const char SYMEXPORT *alpm_strerror(int err)
* requires the archive struct, so we can't. Just use a generic
* error string instead. */
return _("libarchive error");
- case PM_ERR_LIBFETCH:
-#ifdef HAVE_LIBFETCH
- return fetchLastErrString;
-#else
- /* obviously shouldn't get here... */
- return _("download library error");
-#endif
case PM_ERR_LIBCURL:
#ifdef HAVE_LIBCURL
return(curl_easy_strerror(handle->curlerr));