Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
libpkg: Eliminate an unneeded helper function in pkg_jobs.c
Mark Johnston committed 4 years ago
commit 06b59b510a5774dcf0b23c45d56bf9c21cb4e09e
parent 38bbfc6
1 file changed +1 -9
modified libpkg/pkg_jobs.c
@@ -70,8 +70,6 @@ extern struct pkg_ctx ctx;

static int pkg_jobs_installed_local_pkg(struct pkg_jobs *j, struct pkg *pkg);
static int pkg_jobs_find_upgrade(struct pkg_jobs *j, const char *pattern, match_t m);
-
static int pkg_jobs_find_upgrade_cond(struct pkg_jobs *j, const char *cond,
-
	const char *pattern, match_t m);
static int pkg_jobs_fetch(struct pkg_jobs *j);
static bool new_pkg_version(struct pkg_jobs *j);
static int pkg_jobs_check_conflicts(struct pkg_jobs *j);
@@ -924,7 +922,7 @@ pkg_jobs_guess_upgrade_candidate(struct pkg_jobs *j, const char *pattern)
}

static int
-
pkg_jobs_find_upgrade_cond(struct pkg_jobs *j, const char *cond, const char *pattern, match_t m)
+
pkg_jobs_find_upgrade(struct pkg_jobs *j, const char *pattern, match_t m)
{
	struct pkg *p = NULL;
	struct pkgdb_it *it;
@@ -1002,12 +1000,6 @@ pkg_jobs_find_upgrade_cond(struct pkg_jobs *j, const char *cond, const char *pat
}

static int
-
pkg_jobs_find_upgrade(struct pkg_jobs *j, const char *pattern, match_t m)
-
{
-
	return pkg_jobs_find_upgrade_cond(j, NULL, pattern, m);
-
}
-

-
static int
pkg_jobs_check_local_pkg(struct pkg_jobs *j, struct job_pattern *jp)
{
	struct pkgdb_it *it;