diff options
-rw-r--r-- | app/xdg-app-builtins-build-finish.c | 2 | ||||
-rw-r--r-- | app/xdg-app-builtins-build-init.c | 2 | ||||
-rw-r--r-- | app/xdg-app-builtins-build.c | 9 | ||||
-rw-r--r-- | app/xdg-app-builtins-list.c | 4 | ||||
-rw-r--r-- | app/xdg-app-builtins-make-current.c | 1 | ||||
-rw-r--r-- | app/xdg-app-builtins-repo-contents.c | 1 | ||||
-rw-r--r-- | app/xdg-app-builtins-run.c | 3 | ||||
-rw-r--r-- | document-portal/xdp-fuse.c | 1 | ||||
-rw-r--r-- | document-portal/xdp-main.c | 5 | ||||
-rw-r--r-- | document-portal/xdp-util.c | 1 | ||||
-rw-r--r-- | lib/xdg-app-db.c | 1 | ||||
-rw-r--r-- | lib/xdg-app-dir.c | 2 | ||||
-rw-r--r-- | session-helper/xdg-app-permission-store.c | 2 | ||||
-rw-r--r-- | tests/testdb.c | 2 |
14 files changed, 0 insertions, 36 deletions
diff --git a/app/xdg-app-builtins-build-finish.c b/app/xdg-app-builtins-build-finish.c index bff0f30..6739b6c 100644 --- a/app/xdg-app-builtins-build-finish.c +++ b/app/xdg-app-builtins-build-finish.c @@ -313,8 +313,6 @@ xdg_app_builtin_build_finish (int argc, char **argv, GCancellable *cancellable, g_autoptr(GFile) files_dir = NULL; g_autoptr(GFile) export_dir = NULL; g_autoptr(GFile) metadata_file = NULL; - g_autoptr(XdgAppDir) user_dir = NULL; - g_autoptr(XdgAppDir) system_dir = NULL; g_autofree char *metadata_contents = NULL; g_autofree char *app_id = NULL; gsize metadata_size; diff --git a/app/xdg-app-builtins-build-init.c b/app/xdg-app-builtins-build-init.c index 921f9fd..f3f98d9 100644 --- a/app/xdg-app-builtins-build-init.c +++ b/app/xdg-app-builtins-build-init.c @@ -45,8 +45,6 @@ xdg_app_builtin_build_init (int argc, char **argv, GCancellable *cancellable, GE { gboolean ret = FALSE; GOptionContext *context; - g_autoptr(GFile) runtime_deploy_base = NULL; - g_autoptr(GFile) sdk_deploy_base = NULL; g_autoptr(GFile) var_deploy_base = NULL; g_autoptr(GFile) var_deploy_files = NULL; g_autoptr(GFile) base = NULL; diff --git a/app/xdg-app-builtins-build.c b/app/xdg-app-builtins-build.c index 92a01ca..697d1f4 100644 --- a/app/xdg-app-builtins-build.c +++ b/app/xdg-app-builtins-build.c @@ -45,26 +45,17 @@ xdg_app_builtin_build (int argc, char **argv, GCancellable *cancellable, GError { GOptionContext *context; gboolean ret = FALSE; - g_autoptr(XdgAppDir) user_dir = NULL; g_autoptr(XdgAppDeploy) runtime_deploy = NULL; - g_autoptr(GVariantBuilder) optbuilder = NULL; - g_autoptr(GFile) deploy_base = NULL; g_autoptr(GFile) var = NULL; - g_autoptr(GFile) var_tmp = NULL; - g_autoptr(GFile) var_run = NULL; g_autoptr(GFile) app_deploy = NULL; g_autoptr(GFile) app_files = NULL; g_autoptr(GFile) runtime_files = NULL; g_autoptr(GFile) metadata = NULL; g_autofree char *metadata_contents = NULL; g_autofree char *runtime = NULL; - g_autofree char *default_command = NULL; g_autofree char *runtime_ref = NULL; - g_autofree char *app_ref = NULL; g_autoptr(GKeyFile) metakey = NULL; g_autoptr(GKeyFile) runtime_metakey = NULL; - g_autoptr (GError) my_error = NULL; - g_autoptr (GError) my_error2 = NULL; g_autoptr(GPtrArray) argv_array = NULL; glnx_strfreev char **envp = NULL; gsize metadata_size; diff --git a/app/xdg-app-builtins-list.c b/app/xdg-app-builtins-list.c index b89a470..ae410c6 100644 --- a/app/xdg-app-builtins-list.c +++ b/app/xdg-app-builtins-list.c @@ -54,8 +54,6 @@ static gboolean print_installed_refs (const char *kind, gboolean print_system, gboolean print_user, GCancellable *cancellable, GError **error) { gboolean ret = FALSE; - glnx_strfreev gchar **refs = NULL; - g_autofree char *last_ref = NULL; g_autofree char *last = NULL; glnx_strfreev char **system = NULL; glnx_strfreev char **user = NULL; @@ -158,8 +156,6 @@ xdg_app_builtin_list_runtimes (int argc, char **argv, GCancellable *cancellable, { gboolean ret = FALSE; GOptionContext *context; - glnx_strfreev char **system = NULL; - glnx_strfreev char **user = NULL; context = g_option_context_new (" - List installed runtimes"); diff --git a/app/xdg-app-builtins-make-current.c b/app/xdg-app-builtins-make-current.c index eac1c64..1959fb5 100644 --- a/app/xdg-app-builtins-make-current.c +++ b/app/xdg-app-builtins-make-current.c @@ -45,7 +45,6 @@ xdg_app_builtin_make_current_app (int argc, char **argv, GCancellable *cancellab GOptionContext *context; g_autoptr(XdgAppDir) dir = NULL; g_autoptr(GFile) deploy_base = NULL; - g_autoptr(GFile) origin = NULL; const char *app; const char *branch = "master"; g_autofree char *ref = NULL; diff --git a/app/xdg-app-builtins-repo-contents.c b/app/xdg-app-builtins-repo-contents.c index ca8874b..87165cd 100644 --- a/app/xdg-app-builtins-repo-contents.c +++ b/app/xdg-app-builtins-repo-contents.c @@ -60,7 +60,6 @@ xdg_app_builtin_repo_contents (int argc, char **argv, GCancellable *cancellable, int i; const char *repository; g_autofree char *url = NULL; - g_autoptr(GBytes) bytes = NULL; context = g_option_context_new (" REPOSITORY - Show available runtimes and applications"); diff --git a/app/xdg-app-builtins-run.c b/app/xdg-app-builtins-run.c index 93a510b..cc051d7 100644 --- a/app/xdg-app-builtins-run.c +++ b/app/xdg-app-builtins-run.c @@ -147,8 +147,6 @@ xdg_app_builtin_run (int argc, char **argv, GCancellable *cancellable, GError ** { GOptionContext *context; gboolean ret = FALSE; - g_autoptr(GVariantBuilder) optbuilder = NULL; - g_autoptr(GFile) deploy_base = NULL; g_autoptr(XdgAppDeploy) app_deploy = NULL; g_autoptr(XdgAppDeploy) runtime_deploy = NULL; g_autoptr(GFile) app_files = NULL; @@ -163,7 +161,6 @@ xdg_app_builtin_run (int argc, char **argv, GCancellable *cancellable, GError ** g_autofree char *default_command = NULL; g_autofree char *runtime_ref = NULL; g_autofree char *app_ref = NULL; - g_autofree char *path = NULL; g_autofree char *doc_mount_path = NULL; g_autoptr(GKeyFile) metakey = NULL; g_autoptr(GKeyFile) runtime_metakey = NULL; diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index dd3c920..c245c19 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -761,7 +761,6 @@ xdp_fuse_opendir (fuse_req_t req, XdpInodeClass class; guint64 class_ino; g_autoptr (XdgAppDbEntry) entry = NULL; - g_autofree char *basename = NULL; int res; g_debug ("xdp_fuse_opendir %lx", ino); diff --git a/document-portal/xdp-main.c b/document-portal/xdp-main.c index 3dd9e89..e3d87ce 100644 --- a/document-portal/xdp-main.c +++ b/document-portal/xdp-main.c @@ -104,7 +104,6 @@ portal_grant_permissions (GDBusMethodInvocation *invocation, { const char *target_app_id; const char *id; - g_autoptr(GError) error = NULL; g_autofree const char **permissions = NULL; XdpPermissionFlags perms; g_autoptr(XdgAppDbEntry) entry = NULL; @@ -148,7 +147,6 @@ portal_revoke_permissions (GDBusMethodInvocation *invocation, const char *app_id) { const char *target_app_id; - g_autoptr(GError) error = NULL; const char *id; g_autofree const char **permissions = NULL; g_autoptr(XdgAppDbEntry) entry = NULL; @@ -225,9 +223,7 @@ char * do_create_doc (const char *path) { g_autoptr(GVariant) data = g_variant_ref_sink (g_variant_new_bytestring (path)); - g_autofree char *existing_id = NULL; g_autoptr (XdgAppDbEntry) entry = NULL; - g_autofree char *new_id = NULL; glnx_strfreev char **ids = NULL; char *id = NULL; @@ -524,7 +520,6 @@ main (int argc, { guint owner_id; GBytes *introspection_bytes; - g_autoptr(GList) object_types = NULL; g_autoptr(GError) error = NULL; g_autofree char *path = NULL; GDBusConnection *session_bus; diff --git a/document-portal/xdp-util.c b/document-portal/xdp-util.c index fe33eb6..d838d75 100644 --- a/document-portal/xdp-util.c +++ b/document-portal/xdp-util.c @@ -53,7 +53,6 @@ XdpPermissionFlags xdp_get_permissions (XdgAppDbEntry *entry, const char *app_id) { - g_autoptr(GVariant) app_array = NULL; g_autofree const char **permissions = NULL; if (strcmp (app_id, "") == 0) diff --git a/lib/xdg-app-db.c b/lib/xdg-app-db.c index a903b46..1c17094 100644 --- a/lib/xdg-app-db.c +++ b/lib/xdg-app-db.c @@ -455,7 +455,6 @@ char ** xdg_app_db_list_ids_by_app (XdgAppDb *self, const char *app) { - g_autofree char **apps = NULL; GPtrArray *res; GPtrArray *additions; GPtrArray *removals; diff --git a/lib/xdg-app-dir.c b/lib/xdg-app-dir.c index 7b4bfb8..49c5417 100644 --- a/lib/xdg-app-dir.c +++ b/lib/xdg-app-dir.c @@ -1077,8 +1077,6 @@ rewrite_export_dir (const char *app, } else if (S_ISREG (stbuf.st_mode)) { - g_autofree gchar *target = NULL; - if (!xdg_app_has_name_prefix (dent->d_name, app)) { g_warning ("Non-prefixed filename %s in app %s, removing.\n", dent->d_name, app); diff --git a/session-helper/xdg-app-permission-store.c b/session-helper/xdg-app-permission-store.c index 668b3eb..8ef1bb5 100644 --- a/session-helper/xdg-app-permission-store.c +++ b/session-helper/xdg-app-permission-store.c @@ -214,9 +214,7 @@ handle_delete (XdgAppPermissionStore *object, const gchar *id) { Table *table; - g_autoptr(GVariant) data = NULL; g_autoptr(XdgAppDbEntry) entry = NULL; - g_autofree const char **apps = NULL; table = lookup_table (table_name, invocation); if (table == NULL) diff --git a/tests/testdb.c b/tests/testdb.c index 1ce8703..03d6373 100644 --- a/tests/testdb.c +++ b/tests/testdb.c @@ -265,7 +265,6 @@ test_modify (void) g_autoptr(XdgAppDbEntry) entry5 = NULL; g_autoptr(XdgAppDbEntry) entry6 = NULL; g_autoptr(XdgAppDbEntry) entry7 = NULL; - g_autofree const char **apps1 = NULL; g_autofree const char **apps2 = NULL; glnx_strfreev char **apps3 = NULL; g_autofree const char **permissions1 = NULL; @@ -309,7 +308,6 @@ test_modify (void) g_autoptr(XdgAppDbEntry) entry5 = NULL; g_autoptr(XdgAppDbEntry) entry6 = NULL; g_autoptr(XdgAppDbEntry) entry7 = NULL; - g_autofree const char **apps1 = NULL; g_autofree const char **apps2 = NULL; glnx_strfreev char **apps3 = NULL; g_autofree const char **permissions1 = NULL; |