[tracker: 2/8] portal: Remove unused variables




commit de66592c35ac6bfc8af7e7c3e054ca3c1e0a20ff
Author: Daniele Nicolodi <daniele grinta net>
Date:   Tue Apr 27 14:04:32 2021 +0200

    portal: Remove unused variables

 src/portal/tracker-portal-utils.c | 1 -
 src/portal/tracker-portal.c       | 1 -
 2 files changed, 2 deletions(-)
---
diff --git a/src/portal/tracker-portal-utils.c b/src/portal/tracker-portal-utils.c
index 2582a720e..1ae1b218f 100644
--- a/src/portal/tracker-portal-utils.c
+++ b/src/portal/tracker-portal-utils.c
@@ -45,7 +45,6 @@ parse_app_info_from_flatpak_info (int pid, GError **error)
        g_autoptr(GError) local_error = NULL;
        g_autoptr(GMappedFile) mapped = NULL;
        g_autoptr(GKeyFile) metadata = NULL;
-       g_autofree char *id = NULL;
 
        root_path = g_strdup_printf ("/proc/%u/root", pid);
        root_fd = openat (AT_FDCWD, root_path, O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC | O_NOCTTY);
diff --git a/src/portal/tracker-portal.c b/src/portal/tracker-portal.c
index 1fdb48087..d2590475a 100644
--- a/src/portal/tracker-portal.c
+++ b/src/portal/tracker-portal.c
@@ -368,7 +368,6 @@ portal_iface_method_call (GDBusConnection       *connection,
                g_dbus_method_invocation_return_value (invocation,
                                                       g_variant_new ("(o)", session.object_path));
        } else if (g_strcmp0 (method_name, "CloseSession") == 0) {
-               g_autofree gchar *uri = NULL;
                g_autofree gchar *object_path = NULL;
                gboolean found = FALSE;
                gint i;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]