[gnome-software: 3/4] Remove unused variables
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 3/4] Remove unused variables
- Date: Thu, 3 Dec 2020 12:46:01 +0000 (UTC)
commit d1d8afc80d1294eea24b4b52d1dbd9bd899177f8
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Nov 25 12:45:59 2020 +0000
Remove unused variables
Spotted by clang.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
plugins/core/gs-plugin-appstream.c | 1 -
plugins/external-appstream/gs-plugin-external-appstream.c | 1 -
src/gs-details-page.c | 2 --
src/gs-shell.c | 1 -
4 files changed, 5 deletions(-)
---
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index 6a28577b..de420bb7 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -238,7 +238,6 @@ gs_plugin_appstream_load_desktop_fn (GsPlugin *plugin,
GError **error)
{
g_autoptr(GFile) file = g_file_new_for_path (filename);
- g_autoptr(XbBuilderFixup) fixup = NULL;
g_autoptr(XbBuilderNode) info = NULL;
g_autoptr(XbBuilderSource) source = xb_builder_source_new ();
diff --git a/plugins/external-appstream/gs-plugin-external-appstream.c
b/plugins/external-appstream/gs-plugin-external-appstream.c
index e94e0c54..4a1c9e62 100644
--- a/plugins/external-appstream/gs-plugin-external-appstream.c
+++ b/plugins/external-appstream/gs-plugin-external-appstream.c
@@ -109,7 +109,6 @@ gs_plugin_external_appstream_refresh_sys (GsPlugin *plugin,
g_autofree gchar *file_name = NULL;
g_autofree gchar *local_mod_date = NULL;
g_autofree gchar *target_file_path = NULL;
- g_autofree gchar *tmp_file_tmpl = NULL;
g_autoptr(GFileIOStream) iostream = NULL;
g_autoptr(GFile) tmp_file = NULL;
g_autoptr(SoupMessage) msg = NULL;
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 097d7abf..22c4dd68 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -533,7 +533,6 @@ gs_details_page_screenshot_selected_cb (GtkListBox *list,
{
GsScreenshotImage *ssthumb;
AsScreenshot *ss;
- g_autoptr(GList) children = NULL;
if (row == NULL)
return;
@@ -924,7 +923,6 @@ static void
gs_details_page_refresh_buttons (GsDetailsPage *self)
{
AsAppState state;
- g_autofree gchar *text = NULL;
state = gs_app_get_state (self->app);
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 7c8cb2d4..6bf19e2e 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -2117,7 +2117,6 @@ gs_shell_add_about_menu_item (GsShell *shell)
GsShellPrivate *priv = gs_shell_get_instance_private (shell);
GMenu *primary_menu;
g_autoptr(GMenuItem) menu_item = NULL;
- g_autofree gchar *label = NULL;
primary_menu = G_MENU (gtk_builder_get_object (priv->builder, "primary_menu"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]