[gnome-terminal] util: Remove unused functions



commit 6059bbc0765406fbc6b1dfaf0c4cc865a6ab8412
Author: Christian Persch <chpe gnome org>
Date:   Mon Oct 21 17:46:19 2013 +0200

    util: Remove unused functions

 src/terminal-util.c |   44 --------------------------------------------
 src/terminal-util.h |   10 ----------
 2 files changed, 0 insertions(+), 54 deletions(-)
---
diff --git a/src/terminal-util.c b/src/terminal-util.c
index 7f4e81f..e9ce9d1 100644
--- a/src/terminal-util.c
+++ b/src/terminal-util.c
@@ -477,50 +477,6 @@ terminal_util_dialog_focus_widget (GtkWidget *dialog,
     gtk_widget_grab_focus (widget);
 }
 
-/* Like g_key_file_set_string, but escapes characters so that
- * the stored string is ASCII. Use when the input string may not
- * be UTF-8.
- */
-void
-terminal_util_key_file_set_string_escape (GKeyFile *key_file,
-                                          const char *group,
-                                          const char *key,
-                                          const char *string)
-{
-  char *escaped;
-
-  /* FIXMEchpe: be more intelligent and only escape characters that aren't UTF-8 */
-  escaped = g_strescape (string, NULL);
-  g_key_file_set_string (key_file, group, key, escaped);
-  g_free (escaped);
-}
-
-void
-terminal_util_key_file_set_argv (GKeyFile *key_file,
-                                 const char *group,
-                                 const char *key,
-                                 int argc,
-                                 char **argv)
-{
-  char **quoted_argv;
-  char *flat;
-  int i;
-
-  if (argc < 0)
-    argc = g_strv_length (argv);
-
-  quoted_argv = g_new (char*, argc + 1);
-  for (i = 0; i < argc; ++i)
-    quoted_argv[i] = g_shell_quote (argv[i]);
-  quoted_argv[argc] = NULL;
-
-  flat = g_strjoinv (" ", quoted_argv);
-  terminal_util_key_file_set_string_escape (key_file, group, key, flat);
-
-  g_free (flat);
-  g_strfreev (quoted_argv);
-}
-
 /* Proxy stuff */
 
 /*
diff --git a/src/terminal-util.h b/src/terminal-util.h
index 95a3029..c4e7c05 100644
--- a/src/terminal-util.h
+++ b/src/terminal-util.h
@@ -63,16 +63,6 @@ void terminal_util_dialog_focus_widget (GtkWidget *dialog,
 
 gboolean terminal_util_dialog_response_on_delete (GtkWindow *widget);
 
-void terminal_util_key_file_set_string_escape    (GKeyFile *key_file,
-                                                  const char *group,
-                                                  const char *key,
-                                                  const char *string);
-void terminal_util_key_file_set_argv      (GKeyFile *key_file,
-                                           const char *group,
-                                           const char *key,
-                                           int argc,
-                                           char **argv);
-
 void terminal_util_add_proxy_env (GHashTable *env_table);
 
 GdkScreen *terminal_util_get_screen_by_display_name (const char *display_name,


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