Skip to content

Commit dad45bb

Browse files
Remove unused soup (#11002)
1 parent a43be26 commit dad45bb

File tree

5 files changed

+1
-34
lines changed

5 files changed

+1
-34
lines changed

debian/control

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Build-Depends:
2828
libpolkit-agent-1-dev (>= 0.100),
2929
libpulse-dev,
3030
librsvg2-dev,
31-
libsoup2.4-dev,
3231
libstartup-notification0-dev (>= 0.11),
3332
libxapp-dev (>= 2.0.0),
3433
libxfixes-dev (>= 1:5.0),
@@ -69,7 +68,6 @@ Depends:
6968
gir1.2-nma-1.0 [linux-any],
7069
gir1.2-notify-0.7,
7170
gir1.2-polkit-1.0,
72-
gir1.2-soup-2.4,
7371
gir1.2-upowerglib-1.0,
7472
gir1.2-xapp-1.0 (>= 1.9.0),
7573
gkbd-capplet,

meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ gtk = dependency('gtk+-3.0', version: '>= 3.12.0')
4141
muffin = dependency('libmuffin-0', version: '>= 5.2.0')
4242
muffin_typelibdir = muffin.get_pkgconfig_variable('typelibdir')
4343
pango = dependency('muffin-cogl-pango-0')
44-
soup = dependency('libsoup-2.4')
4544
xapp = dependency('xapp', version: '>= 2.0.0')
4645
X11 = dependency('x11')
4746
xml = dependency('libxml-2.0')

src/cinnamon-util.c

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -630,29 +630,6 @@ cinnamon_get_event_state (ClutterEvent *event)
630630
return state;
631631
}
632632

633-
/**
634-
* cinnamon_write_soup_message_to_stream:
635-
* @stream: a #GOutputStream
636-
* @message: a #SoupMessage
637-
* @error: location to store GError
638-
*
639-
* Write a string to a GOutputStream as binary data. This is a
640-
* workaround for the lack of proper binary strings in GJS.
641-
*/
642-
void
643-
cinnamon_write_soup_message_to_stream (GOutputStream *stream,
644-
SoupMessage *message,
645-
GError **error)
646-
{
647-
SoupMessageBody *body;
648-
649-
body = message->response_body;
650-
651-
g_output_stream_write_all (stream,
652-
body->data, body->length,
653-
NULL, NULL, error);
654-
}
655-
656633
/**
657634
* cinnamon_write_string_to_stream:
658635
* @stream: a #GOutputStream
@@ -1089,4 +1066,4 @@ cinnamon_get_gpu_offload_supported (void)
10891066
}
10901067

10911068
return offload_supported;
1092-
}
1069+
}

src/cinnamon-util.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <gio/gio.h>
77
#include <clutter/clutter.h>
88
#include <meta/meta-window-actor.h>
9-
#include <libsoup/soup.h>
109

1110
G_BEGIN_DECLS
1211

@@ -27,10 +26,6 @@ char *cinnamon_util_format_date (const char *format,
2726
ClutterModifierType
2827
cinnamon_get_event_state (ClutterEvent *event);
2928

30-
void cinnamon_write_soup_message_to_stream (GOutputStream *stream,
31-
SoupMessage *message,
32-
GError **error);
33-
3429
gboolean cinnamon_write_string_to_stream (GOutputStream *stream,
3530
const char *str,
3631
GError **error);

src/meson.build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ libcinnamon_deps = [
9999
muffin,
100100
pango,
101101
polkit,
102-
soup,
103102
st_dep,
104103
xapp,
105104
xfixes,
@@ -188,7 +187,6 @@ cinnamon_gir_includes = [
188187
'CoglPango-0',
189188
'Cogl-0',
190189
'Meta-0',
191-
'Soup-2.4',
192190
'CMenu-3.0',
193191
st_gir[0],
194192
]

0 commit comments

Comments
 (0)