Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Remove dead code
Baptiste Daroussin committed 11 years ago
commit 5045c556e531eb7e8aff6378783c887706cb49f7
parent 8ae3783
2 files changed +0 -23
modified libpkg/private/utils.h
@@ -94,7 +94,6 @@ int file_to_bufferat(int, const char *, char **, off_t *);
int format_exec_cmd(char **, const char *, const char *, const char *, char *,
    int argc, char **argv);
int is_dir(const char *);
-
int is_conf_file(const char *path, char *newpath, size_t len);

void sha256_buf(const char *, size_t len, char[SHA256_DIGEST_LENGTH * 2 +1]);
void sha256_buf_bin(const char *, size_t len, char[SHA256_DIGEST_LENGTH]);
modified libpkg/utils.c
@@ -546,28 +546,6 @@ string_end_with(const char *path, const char *str)
	return (false);
}

-
int
-
is_conf_file(const char *path, char *newpath, size_t len)
-
{
-
	size_t n;
-
	const char *p = NULL;
-

-
	n = strlen(path);
-

-
	if (n < 8)
-
		return (0);
-

-
	p = &path[n - 8];
-

-
	if (strcmp(p, ".pkgconf") == 0) {
-
		strlcpy(newpath, path, len);
-
		newpath[n - 8] = '\0';
-
		return (1);
-
	}
-

-
	return (0);
-
}
-

bool
check_for_hardlink(struct hardlinks **hl, struct stat *st)
{