summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormorganamilo <morganamilo@archlinux.org>2021-05-17 23:25:26 +0200
committerAllan McRae <allan@archlinux.org>2021-05-20 03:34:00 +0200
commitb44e82e47975495ee7cf23d0243c05db81d2c501 (patch)
tree0677ad4658e3b54eb7c3c99d477e25137369aada
parente176b8ec198ef34ae70a1f46b7b7fe998aa0c475 (diff)
downloadpacman-b44e82e47975495ee7cf23d0243c05db81d2c501.tar.gz
pacman-b44e82e47975495ee7cf23d0243c05db81d2c501.tar.xz
libalpm: remove unused error value
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--README1
-rw-r--r--lib/libalpm/alpm.h2
-rw-r--r--lib/libalpm/error.c2
3 files changed, 1 insertions, 4 deletions
diff --git a/README b/README
index 71f9a58f..fbd32687 100644
--- a/README
+++ b/README
@@ -661,6 +661,7 @@ API CHANGES BETWEEN 5.2 AND 6.0
[REMOVED]
- ALPM_EVENT_PKGDOWNLOAD_START, ALPM_EVENT_PKGDOWNLOAD_DONE, ALPM_EVENT_PKGDOWNLOAD_FAILED
+- ALPM_ERR_PKG_REPO_NOT_FOUND
- old TotalDownload implementation
- alpm_cb_totaldl
- alpm_option_get_totaldlcb()
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index c4acc062..a5f4a6ae 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -292,8 +292,6 @@ typedef enum _alpm_errno_t {
ALPM_ERR_PKG_INVALID_NAME,
/** Package has an invalid architecture */
ALPM_ERR_PKG_INVALID_ARCH,
- /** Unused */
- ALPM_ERR_PKG_REPO_NOT_FOUND,
/* Signatures */
/** Signatures are missing */
ALPM_ERR_SIG_MISSING,
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index c06d091a..c1a16cee 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -125,8 +125,6 @@ const char SYMEXPORT *alpm_strerror(alpm_errno_t err)
return _("package filename is not valid");
case ALPM_ERR_PKG_INVALID_ARCH:
return _("package architecture is not valid");
- case ALPM_ERR_PKG_REPO_NOT_FOUND:
- return _("could not find repository for target");
/* Signatures */
case ALPM_ERR_SIG_MISSING:
return _("missing PGP signature");