[gnome-terminal] client: legacy: Simplfy FD passing options



commit 9d4c87cf6d62a66d47aace55f9a52e70ce37aa5b
Author: Christian Persch <chpe src gnome org>
Date:   Tue Oct 31 10:20:24 2017 +0100

    client: legacy: Simplfy FD passing options
    
    We don't need extra options for std{in,out,err} which we don't support
    anyway.

 src/terminal-options.c |   41 -----------------------------------------
 1 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/src/terminal-options.c b/src/terminal-options.c
index ffe39fd..8349bea 100644
--- a/src/terminal-options.c
+++ b/src/terminal-options.c
@@ -750,20 +750,6 @@ option_wait_cb (const gchar *option_name,
 }
 
 static gboolean
-option_pass_std_cb (const gchar *option_name,
-                    const gchar *value,
-                    gpointer     data,
-                    GError     **error)
-{
-  g_assert (g_str_has_prefix (option_name, "--std"));
-  /* We may support this later */
-  g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
-               "FD passing of %s is not supported",
-               option_name + 2);
-  return FALSE;
-}
-
-static gboolean
 option_pass_fd_cb (const gchar *option_name,
                    const gchar *value,
                    gpointer     data,
@@ -1382,33 +1368,6 @@ get_goption_context (TerminalOptions *options)
       NULL
     },
     {
-      "stdin",
-      0,
-      G_OPTION_FLAG_HIDDEN | G_OPTION_FLAG_NO_ARG,
-      G_OPTION_ARG_CALLBACK,
-      option_pass_std_cb,
-      "Forward stdin",
-      NULL
-    },
-    {
-      "stdout",
-      0,
-      G_OPTION_FLAG_HIDDEN | G_OPTION_FLAG_NO_ARG,
-      G_OPTION_ARG_CALLBACK,
-      option_pass_std_cb,
-      "Forward stdout",
-      NULL
-    },
-    {
-      "stderr",
-      0,
-      G_OPTION_FLAG_HIDDEN | G_OPTION_FLAG_NO_ARG,
-      G_OPTION_ARG_CALLBACK,
-      option_pass_std_cb,
-      "Forward stderr",
-      NULL
-    },
-    {
       "fd",
       0,
       0,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]