Remove unused variables

This commit is contained in:
Alexander Larsson committed 2016-12-19 10:08:18 +01:00
1 parent 886eeb7d4a
commit b066d863bc
4 files changed
+2 -4

No files matched your search

-1
View File
@@ -71,7 +71,6 @@ flatpak_builtin_info (int argc, char **argv, GCancellable *cancellable, GError *
g_autoptr(GOptionContext) context = NULL;
g_autofree char *ref = NULL;
g_autoptr(FlatpakDir) user_dir = NULL;
g_autoptr(FlatpakDir) installation_dir = NULL;
g_autoptr(FlatpakDir) system_dir = NULL;
g_autoptr(GPtrArray) system_dirs = NULL;
FlatpakDir *dir = NULL;
+1 -1
View File
@@ -52,7 +52,7 @@ flatpak_builtin_list_remotes (int argc, char **argv, GCancellable *cancellable,
{
g_autoptr(GOptionContext) context = NULL;
g_autoptr(GPtrArray) dirs = NULL;
guint i = 0, n_dirs = 0, j;
guint i = 0, j;
FlatpakTablePrinter *printer;
gboolean print_all_system = FALSE;
+1 -1
View File
@@ -328,7 +328,7 @@ print_installed_refs (gboolean app, gboolean runtime, gboolean print_system, gbo
if (system_dir == NULL)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
"Can't find installation %s", opt_installations);
"Can't find installation %s", installations[i]);
return FALSE;
}
-1
View File
@@ -490,7 +490,6 @@ get_system_locations (GCancellable *cancellable,
GError **error)
{
g_autoptr(GPtrArray) locations = NULL;
g_autoptr(GFile) default_location = NULL;
/* This will always return a GPtrArray, being an empty one
* if no additional system installations have been configured.