mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-24 00:19:19 -04:00
Remove unused variables
This commit is contained in:
1 parent
886eeb7d4a
commit
b066d863bc
4 files changed
+2
-4
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user