File: Remove-some-unused-variables.patch

package info (click to toggle)
libportal 0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,280 kB
  • sloc: ansic: 7,646; javascript: 670; cpp: 463; sh: 162; makefile: 36; xml: 20
file content (47 lines) | stat: -rw-r--r-- 1,593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu, 30 Jun 2022 13:55:10 +1000
Subject: Remove some unused variables

Origin: upstream, 0.7, commit:0d2177c78f2e024b8cae10488a8c16f4ce4c75bd
---
 libportal/notification.c           | 1 -
 libportal/updates.c                | 1 -
 portal-test/gtk3/portal-test-win.c | 1 -
 3 files changed, 3 deletions(-)

diff --git a/libportal/notification.c b/libportal/notification.c
index 76778ca..8230876 100644
--- a/libportal/notification.c
+++ b/libportal/notification.c
@@ -32,7 +32,6 @@ action_invoked (GDBusConnection *bus,
                 gpointer data)
 {
   XdpPortal *portal = data;
-  g_autoptr(GVariant) info = NULL;
   const char *id;
   const char *action;
   g_autoptr(GVariant) parameter = NULL;
diff --git a/libportal/updates.c b/libportal/updates.c
index a75c30c..2f10e39 100644
--- a/libportal/updates.c
+++ b/libportal/updates.c
@@ -168,7 +168,6 @@ create_monitor (CreateMonitorCall *call)
 {
   GVariantBuilder options;
   g_autofree char *token = NULL;
-  g_autofree char *session_token = NULL;
   GCancellable *cancellable;
 
   if (call->portal->update_monitor_handle)
diff --git a/portal-test/gtk3/portal-test-win.c b/portal-test/gtk3/portal-test-win.c
index e2432c6..1da7e8f 100644
--- a/portal-test/gtk3/portal-test-win.c
+++ b/portal-test/gtk3/portal-test-win.c
@@ -526,7 +526,6 @@ taken (GObject *source,
 {
   PortalTestWin *win = data;
   g_autofree char *uri = NULL;
-  g_autoptr(GdkPixbuf) pixbuf = NULL;
   g_autoptr(GError) error = NULL;
 
   uri = xdp_portal_take_screenshot_finish (win->portal, result, &error);