mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-16 22:19:47 -04:00
Remove unused variables
This commit is contained in:
committed by
Alexander Larsson
parent
531f9dbf24
commit
c3cfc4aa78
@@ -2896,7 +2896,9 @@ flatpak_dir_pull (FlatpakDir *self,
|
||||
g_auto(GLnxConsoleRef) console = { 0, };
|
||||
g_autoptr(OstreeAsyncProgress) console_progress = NULL;
|
||||
g_autoptr(GPtrArray) subdirs_arg = NULL;
|
||||
#ifdef FLATPAK_ENABLE_P2P
|
||||
g_auto(OstreeRepoFinderResultv) allocated_results = NULL;
|
||||
#endif
|
||||
const OstreeRepoFinderResult * const *results;
|
||||
g_auto(GLnxLockFile) lock = GLNX_LOCK_FILE_INIT;
|
||||
|
||||
@@ -2949,9 +2951,9 @@ flatpak_dir_pull (FlatpakDir *self,
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef FLATPAK_ENABLE_P2P
|
||||
g_autofree char *collection_id = NULL;
|
||||
|
||||
#ifdef FLATPAK_ENABLE_P2P
|
||||
if (!repo_get_remote_collection_id (self->repo, repository, &collection_id, NULL))
|
||||
collection_id = NULL;
|
||||
|
||||
|
||||
@@ -3639,10 +3639,6 @@ add_font_path_args (GPtrArray *argv_array)
|
||||
static void
|
||||
add_icon_path_args (GPtrArray *argv_array)
|
||||
{
|
||||
g_autoptr(GFile) home = NULL;
|
||||
g_autoptr(GFile) user_font1 = NULL;
|
||||
g_autoptr(GFile) user_font2 = NULL;
|
||||
|
||||
if (g_file_test ("/usr/share/icons", G_FILE_TEST_IS_DIR))
|
||||
{
|
||||
add_args (argv_array,
|
||||
|
||||
@@ -2593,7 +2593,6 @@ flatpak_summary_match_subrefs (GVariant *summary,
|
||||
const char *ref)
|
||||
{
|
||||
g_autoptr(GVariant) refs = NULL;
|
||||
g_autoptr(GVariant) metadata = g_variant_get_child_value (summary, 1);
|
||||
GPtrArray *res = g_ptr_array_new ();
|
||||
gsize n, i;
|
||||
g_auto(GStrv) parts = NULL;
|
||||
|
||||
Reference in New Issue
Block a user