From 81e107885c80fe6cd3c8b06b8e9fb09f4d625b59 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Oct 2020 15:08:15 -0400 Subject: [PATCH] Remove some unused code --- gtk/a11y/gtkatspicontext.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 8482d40c52..6e4cfdf2c2 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -938,37 +938,6 @@ gtk_at_spi_context_state_change (GtkATContext *ctx, } } -static void -insert_text_cb (GtkEditable *editable, - char *new_text, - int new_text_length, - int *position, - GtkAtSpiContext *self) -{ - int length; - - if (new_text_length == 0) - return; - - length = g_utf8_strlen (new_text, new_text_length); - emit_text_changed (self, "insert", *position - length, length, new_text); -} - -static void -delete_text_cb (GtkEditable *editable, - int start, - int end, - GtkAtSpiContext *self) -{ - char *text; - - if (start == end) - return; - - text = gtk_editable_get_chars (editable, start, end); - emit_text_changed (self, "delete", start, end - start, text); -} - static void gtk_at_spi_context_dispose (GObject *gobject) {