From 017218c73887b3ea347ae63c5571c5c77a69e25a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 23 Sep 2021 17:41:52 -0700 Subject: [PATCH] smyrna: remove unused write_to_console --- cmd/smyrna/gui/toolboxcallbacks.c | 12 ------------ cmd/smyrna/gui/toolboxcallbacks.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/cmd/smyrna/gui/toolboxcallbacks.c b/cmd/smyrna/gui/toolboxcallbacks.c index fed5d3b4d..6e2cf927f 100644 --- a/cmd/smyrna/gui/toolboxcallbacks.c +++ b/cmd/smyrna/gui/toolboxcallbacks.c @@ -121,18 +121,6 @@ void btnToolFindEdge_clicked(GtkWidget * widget, gpointer user_data) void btnToolCursor_clicked(GtkWidget * widget, gpointer user_data) { } -void write_to_console(char *text) -{ - //init console text - GtkTextIter iter; - if (!view->consoleText) - view->consoleText = gtk_text_buffer_new(NULL); - gtk_text_buffer_get_end_iter(view->consoleText, &iter); - gtk_text_buffer_insert(view->consoleText, &iter, text, -1); - gtk_text_view_set_buffer((GtkTextView *) - glade_xml_get_widget(xml, "consoleText"), - view->consoleText); -} void on_btnActivateGraph_clicked(GtkWidget * widget, gpointer user_data) { diff --git a/cmd/smyrna/gui/toolboxcallbacks.h b/cmd/smyrna/gui/toolboxcallbacks.h index 0ab13d7e7..fb09e826d 100644 --- a/cmd/smyrna/gui/toolboxcallbacks.h +++ b/cmd/smyrna/gui/toolboxcallbacks.h @@ -60,8 +60,6 @@ extern "C" { _BB void on_btnActivateGraph_clicked(GtkWidget * widget, gpointer user_data); - void write_to_console(char *text); - #ifdef __cplusplus } /* end extern "C" */ #endif -- 2.40.0