[Spice-devel] [PATCH spice-gtk 1/2] spice-session: Remove unused spice_session_set_main_channel function

Frediano Ziglio fziglio at redhat.com
Thu Sep 27 06:12:01 UTC 2018


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 src/spice-session-priv.h |  1 -
 src/spice-session.c      | 10 ----------
 2 files changed, 11 deletions(-)

diff --git a/src/spice-session-priv.h b/src/spice-session-priv.h
index 03005aa..d2a557b 100644
--- a/src/spice-session-priv.h
+++ b/src/spice-session-priv.h
@@ -96,7 +96,6 @@ const guint8* spice_session_get_webdav_magic(SpiceSession *session);
 PhodavServer *spice_session_get_webdav_server(SpiceSession *session);
 PhodavServer* channel_webdav_server_new(SpiceSession *session);
 guint spice_session_get_n_display_channels(SpiceSession *session);
-void spice_session_set_main_channel(SpiceSession *session, SpiceChannel *channel);
 gboolean spice_session_set_migration_session(SpiceSession *session, SpiceSession *mig_session);
 SpiceAudio *spice_audio_get(SpiceSession *session, GMainContext *context);
 const gchar* spice_audio_data_mode_to_string(gint mode);
diff --git a/src/spice-session.c b/src/spice-session.c
index 2b7c675..8030eb6 100644
--- a/src/spice-session.c
+++ b/src/spice-session.c
@@ -2777,16 +2777,6 @@ gboolean spice_session_is_for_migration(SpiceSession *session)
     return session->priv->for_migration;
 }
 
-G_GNUC_INTERNAL
-void spice_session_set_main_channel(SpiceSession *session, SpiceChannel *channel)
-{
-    g_return_if_fail(SPICE_IS_SESSION(session));
-    g_return_if_fail(SPICE_IS_CHANNEL(channel));
-    g_return_if_fail(session->priv->cmain == NULL);
-
-    session->priv->cmain = channel;
-}
-
 G_GNUC_INTERNAL
 gboolean spice_session_set_migration_session(SpiceSession *session, SpiceSession *mig_session)
 {
-- 
2.17.1



More information about the Spice-devel mailing list