From ee8c13b160add030d2ff94ad714cede2f4ca9179 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 28 Aug 2023 17:26:28 -0400 Subject: [PATCH] lib/delta: Remove dead code Found by clang-analyzer. --- src/libostree/ostree-repo-static-delta-compilation.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c index 4239bc83..54e4801f 100644 --- a/src/libostree/ostree-repo-static-delta-compilation.c +++ b/src/libostree/ostree-repo-static-delta-compilation.c @@ -1267,7 +1267,6 @@ ostree_repo_static_delta_generate (OstreeRepo *self, OstreeStaticDeltaGenerateOp guint64 total_compressed_size = 0; guint64 total_uncompressed_size = 0; g_autoptr (GVariantBuilder) part_headers = NULL; - g_autoptr (GPtrArray) part_temp_paths = NULL; g_autoptr (GVariant) to_commit = NULL; const char *opt_filename; g_autofree char *descriptor_name = NULL; @@ -1422,7 +1421,6 @@ ostree_repo_static_delta_generate (OstreeRepo *self, OstreeStaticDeltaGenerateOp } part_headers = g_variant_builder_new (G_VARIANT_TYPE ("a" OSTREE_STATIC_DELTA_META_ENTRY_FORMAT)); - part_temp_paths = g_ptr_array_new_with_free_func ((GDestroyNotify)glnx_tmpfile_clear); for (i = 0; i < builder.parts->len; i++) { OstreeStaticDeltaPartBuilder *part_builder = builder.parts->pdata[i];