[vte] emulation: Remove unused code



commit 45cbf11f768b46641c359ab71ad95ee4d78aafc6
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon May 19 15:07:01 2014 +0200

    emulation: Remove unused code

 src/vteseq-n.gperf |    2 -
 src/vteseq.c       |   63 ----------------------------------------------------
 2 files changed, 0 insertions(+), 65 deletions(-)
---
diff --git a/src/vteseq-n.gperf b/src/vteseq-n.gperf
index 39a94f2..aff74de 100644
--- a/src/vteseq-n.gperf
+++ b/src/vteseq-n.gperf
@@ -19,8 +19,6 @@ struct vteseq_n_struct {
 };
 
 %%
-#"..rp", VTE_SEQUENCE_HANDLER_NULL
-#"..sa", VTE_SEQUENCE_HANDLER_NULL
 "line-feed", VTE_SEQUENCE_HANDLER(vte_sequence_handler_line_feed)
 "carriage-return", VTE_SEQUENCE_HANDLER(vte_sequence_handler_carriage_return)
 "bell", VTE_SEQUENCE_HANDLER(vte_sequence_handler_bell)
diff --git a/src/vteseq.c b/src/vteseq.c
index fb9cdab..6bf2e88 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -72,22 +72,6 @@ display_control_sequence(const char *name, GValueArray *params)
 
 /* A couple are duplicated from vte.c, to keep them static... */
 
-/* Find the character an the given position in the backscroll buffer. */
-static VteCell *
-vte_terminal_find_charcell (VteTerminal *terminal, glong col, glong row)
-{
-       VteRowData *rowdata;
-       VteCell *ret = NULL;
-       VteScreen *screen;
-       g_assert(VTE_IS_TERMINAL(terminal));
-       screen = terminal->pvt->screen;
-       if (_vte_ring_contains (screen->row_data, row)) {
-               rowdata = _vte_ring_index_writable (screen->row_data, row);
-               ret = _vte_row_data_get_writable (rowdata, col);
-       }
-       return ret;
-}
-
 /* Check how long a string of unichars is.  Slow version. */
 static gssize
 vte_unichar_strlen(gunichar *c)
@@ -396,22 +380,6 @@ _vte_terminal_scroll_text (VteTerminal *terminal, int scroll_amount)
        terminal->pvt->text_deleted_flag = TRUE;
 }
 
-static gboolean
-vte_terminal_terminfo_string_same_as_for (VteTerminal *terminal,
-                                          const char *cap_str,
-                                          guint var_other)
-{
-       const char *other_str;
-
-       other_str = _vte_terminfo_get_string(terminal->pvt->terminfo,
-                                             var_other);
-
-        /* FIXMEchpe: why case insensitive compare!? */
-        return cap_str &&
-               other_str &&
-               g_ascii_strcasecmp(cap_str, other_str) == 0;
-}
-
 /* Set icon/window titles. */
 static void
 vte_sequence_handler_set_title_internal(VteTerminal *terminal,
@@ -508,29 +476,6 @@ typedef void (*VteTerminalSequenceHandler) (VteTerminal *terminal, GValueArray *
 #undef VTE_SEQUENCE_HANDLER
 
 
-/* Call another handler, offsetting any long arguments by the given
- * increment value. */
-static void
-vte_sequence_handler_offset(VteTerminal *terminal,
-                           GValueArray *params,
-                           int increment,
-                           VteTerminalSequenceHandler handler)
-{
-       guint i;
-       long val;
-       GValue *value;
-       /* Decrement the parameters and let the _cs handler deal with it. */
-       for (i = 0; (params != NULL) && (i < params->n_values); i++) {
-               value = g_value_array_get_nth(params, i);
-               if (G_VALUE_HOLDS_LONG(value)) {
-                       val = g_value_get_long(value);
-                       val += increment;
-                       g_value_set_long(value, val);
-               }
-       }
-       handler (terminal, params);
-}
-
 /* Call another function a given number of times, or once. */
 static void
 vte_sequence_handler_multiple_limited(VteTerminal *terminal,
@@ -554,14 +499,6 @@ vte_sequence_handler_multiple_limited(VteTerminal *terminal,
 }
 
 static void
-vte_sequence_handler_multiple(VteTerminal *terminal,
-                              GValueArray *params,
-                              VteTerminalSequenceHandler handler)
-{
-        vte_sequence_handler_multiple_limited(terminal, params, handler, G_MAXUSHORT);
-}
-
-static void
 vte_sequence_handler_multiple_r(VteTerminal *terminal,
                                 GValueArray *params,
                                 VteTerminalSequenceHandler handler)


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