Blob Blame History Raw
From 44ec55fb9997bdc312b21e707b0aff2ea5e159fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@gmail.com>
Date: Wed, 14 Aug 2013 22:30:12 +0200
Subject: [PATCH] remote-viewer: remove -d direct option

remote-viewer currently doesn't provide automatic ssh tunnels, and even if
it would, that would be explicit in the url given to remote-viewer (such
as spice+ssh://...)

https://bugzilla.redhat.com/show_bug.cgi?id=991261
(cherry picked from commit b8d114ef1dbf9b3c81ffd91d8497dd406ac61e26)
---
 src/remote-viewer-main.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/remote-viewer-main.c b/src/remote-viewer-main.c
index 820a676..19e5197 100644
--- a/src/remote-viewer-main.c
+++ b/src/remote-viewer-main.c
@@ -112,7 +112,6 @@ main(int argc, char **argv)
     char *hotkeys = NULL;
     gboolean verbose = FALSE;
     gboolean debug = FALSE;
-    gboolean direct = FALSE;
     RemoteViewer *viewer = NULL;
 #ifdef HAVE_SPICE_GTK
     gboolean controller = FALSE;
@@ -125,8 +124,6 @@ main(int argc, char **argv)
           N_("Display verbose information"), NULL },
         { "title", 't', 0, G_OPTION_ARG_STRING, &title,
           N_("Set window title"), NULL },
-        { "direct", 'd', 0, G_OPTION_ARG_NONE, &direct,
-          N_("Direct connection with no automatic tunnels"), NULL },
         { "zoom", 'z', 0, G_OPTION_ARG_INT, &zoom,
           N_("Zoom level of window, in percentage"), "ZOOM" },
         { "debug", '\0', 0, G_OPTION_ARG_NONE, &debug,
@@ -213,7 +210,6 @@ main(int argc, char **argv)
     g_object_set(app, "fullscreen-auto-conf", fullscreen_auto_conf, NULL);
     g_object_set(app, "fullscreen", fullscreen, NULL);
     virt_viewer_window_set_zoom_level(virt_viewer_app_get_main_window(app), zoom);
-    virt_viewer_app_set_direct(app, direct);
     virt_viewer_app_set_hotkeys(app, hotkeys);
 
     if (!virt_viewer_app_start(app))