From 8d9be910e5bcb7c0bda439c54a51d85b34cb8881 Mon Sep 17 00:00:00 2001 From: Ludovico de Nittis Date: Thu, 18 Feb 2021 11:39:23 +0100 Subject: [PATCH 1/2] dir: Remove unused AutoPolkitDetails variable Signed-off-by: Ludovico de Nittis --- common/flatpak-dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 33a930e3..e6e4d6fb 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -7928,13 +7928,12 @@ flatpak_dir_check_parental_controls (FlatpakDir *self, const char *content_rating_type; g_autoptr(GHashTable) content_rating = NULL; g_autoptr(AutoPolkitAuthority) authority = NULL; - g_autoptr(AutoPolkitDetails) details = NULL; g_autoptr(AutoPolkitSubject) subject = NULL; gint subject_uid; g_autoptr(AutoPolkitAuthorizationResult) result = NULL; gboolean authorized; gboolean repo_installation_allowed, app_is_appropriate; - + /* Assume that root is allowed to install any ref and shouldn't have any * parental controls restrictions applied to them */ if (getuid () == 0) From 0d27b277446099464e617836f477b74094c7c27f Mon Sep 17 00:00:00 2001 From: Ludovico de Nittis Date: Thu, 18 Feb 2021 11:39:45 +0100 Subject: [PATCH 2/2] run: Remove unused GAsyncResult variable Signed-off-by: Ludovico de Nittis --- common/flatpak-run.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 4eeac123..d96bfa14 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -3514,7 +3514,6 @@ check_parental_controls (FlatpakDecomposed *app_ref, #ifdef HAVE_LIBMALCONTENT g_autoptr(MctManager) manager = NULL; g_autoptr(MctAppFilter) app_filter = NULL; - g_autoptr(GAsyncResult) app_filter_result = NULL; g_autoptr(GDBusConnection) system_bus = NULL; g_autoptr(GError) local_error = NULL; g_autoptr(GDesktopAppInfo) app_info = NULL;