]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire: Remove unused clone function
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Jan 2025 14:41:18 +0000 (14:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Jan 2025 14:41:18 +0000 (14:41 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/pakfire.c
src/pakfire/pakfire.h

index 3c7079c221f4556d5e03df568f856393b56d30fa..661b9b016e6efa22514f3807f3feaa02dc089cd4 100644 (file)
@@ -1114,22 +1114,6 @@ ERROR:
        return r;
 }
 
-int pakfire_clone(struct pakfire** clone, struct pakfire* pakfire, const char* path) {
-       struct pakfire* p = NULL;
-       int r;
-
-       // Create a new Pakfire instance
-       r = pakfire_create(&p, pakfire->ctx, pakfire->config, path,
-               pakfire->arches.nominal, pakfire->flags);
-       if (r < 0)
-               return r;
-
-       // Return the pointer
-       *clone = p;
-
-       return 0;
-}
-
 struct pakfire* pakfire_ref(struct pakfire* pakfire) {
        ++pakfire->nrefs;
 
index e1be9aa76913121b0a3d58bd7c38e4dbcf28d3e3..a253e75e0b7e0d69afced1658970c05323ee4a63 100644 (file)
@@ -95,8 +95,6 @@ int pakfire_check(struct pakfire* pakfire, struct pakfire_filelist* errors);
 // Snapshots
 int pakfire_update_snapshot(struct pakfire* pakfire);
 
-int pakfire_clone(struct pakfire** clone, struct pakfire* pakfire, const char* path);
-
 struct pakfire_ctx* pakfire_ctx(struct pakfire* pakfire);
 
 const char* pakfire_get_effective_arch(struct pakfire* pakfire);