Remove unused variables

This commit is contained in:
Alexander Larsson
2017-09-26 11:49:47 +02:00
committed by Alexander Larsson
parent 531f9dbf24
commit c3cfc4aa78
3 changed files with 3 additions and 6 deletions

View File

@@ -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;

View File

@@ -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,

View File

@@ -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;