summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-27 18:13:23 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-27 18:13:23 +0100
commit85b11769ab507c7df93f319fd964fa579701b76b (patch)
treeb4fdc6eb96c888e12159a007610a3d2cbab3f31c /src/gui_gtk_x11.c
parent4d1961783fdcb133b6b181acb7166b9f1872bf09 (diff)
patch 7.4.1433v7.4.1433
Problem: The Sniff interface is no longer useful, the tool has not been available for may years. Solution: Delete the Sniff interface and related code.
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 440b401ab1..69e4e1824e 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -6460,22 +6460,6 @@ input_timer_cb(gpointer data)
return FALSE; /* don't happen again */
}
-#ifdef FEAT_SNIFF
-/*
- * Callback function, used when data is available on the SNiFF connection.
- */
- static void
-sniff_request_cb(
- gpointer data UNUSED,
- gint source_fd UNUSED,
- GdkInputCondition condition UNUSED)
-{
- static char_u bytes[3] = {CSI, (int)KS_EXTRA, (int)KE_SNIFF};
-
- add_to_input_buf(bytes, 3);
-}
-#endif
-
/*
* GUI input routine called by gui_wait_for_chars(). Waits for a character
* from the keyboard.
@@ -6491,26 +6475,6 @@ gui_mch_wait_for_chars(long wtime)
int focus;
guint timer;
static int timed_out;
-#ifdef FEAT_SNIFF
- static int sniff_on = 0;
- static gint sniff_input_id = 0;
-#endif
-
-#ifdef FEAT_SNIFF
- if (sniff_on && !want_sniff_request)
- {
- if (sniff_input_id)
- gdk_input_remove(sniff_input_id);
- sniff_on = 0;
- }
- else if (!sniff_on && want_sniff_request)
- {
- /* Add fd_from_sniff to watch for available data in main loop. */
- sniff_input_id = gdk_input_add(fd_from_sniff,
- GDK_INPUT_READ, sniff_request_cb, NULL);
- sniff_on = 1;
- }
-#endif
timed_out = FALSE;