Skip to content

eBPF-based security platform

bpm: drop bpm_pkg_visit_members(), which nothing calls

Daniel Borkmanndf06b71a89bb
diff --git a/util/bpm_package.c b/util/bpm_package.c
index 0bed9db1..80605c5a 100644
--- a/util/bpm_package.c
+++ b/util/bpm_package.c
@@ -672,12 +672,6 @@ done:
return ret;
}
-int bpm_pkg_visit_members(const char *archive, const char *package_dir,
- bpm_pkg_member_fn visit, void *ctx)
-{
- return visit_members_gz(gzopen(archive, "rb"), package_dir, visit, ctx);
-}
-
int bpm_pkg_visit_members_fd(int fd, const char *package_dir,
bpm_pkg_member_fn visit, void *ctx)
{
diff --git a/util/bpm_package.h b/util/bpm_package.h
index bb014801..a7fd39ae 100644
--- a/util/bpm_package.h
+++ b/util/bpm_package.h
@@ -73,12 +73,9 @@ int bpm_upatch_pair(const char *name, size_t len, char *out, size_t cap);
typedef int (*bpm_pkg_member_fn)(void *ctx, const char *member, char type);
/*
- * Visit validated package-relative ustar members without extracting them.
- * The _fd variants read the archive from the start of fd, which they
- * leave open.
+ * Visit validated package-relative ustar members without extracting them,
+ * reading the archive from the start of fd, which it leaves open.
*/
-int bpm_pkg_visit_members(const char *archive, const char *package_dir,
- bpm_pkg_member_fn visit, void *ctx);
int bpm_pkg_visit_members_fd(int fd, const char *package_dir,
bpm_pkg_member_fn visit, void *ctx);