From: Matthew Fernandez Date: Wed, 17 Nov 2021 04:53:08 +0000 (-0800) Subject: smyrna: remove unused 'get_gtktextview_text' X-Git-Tag: 2.50.0~25^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6bb225a354a64abff0652d1c81c32bd235aae87;p=graphviz smyrna: remove unused 'get_gtktextview_text' --- diff --git a/cmd/smyrna/gui/gui.c b/cmd/smyrna/gui/gui.c index 751a14b80..3a23e0415 100644 --- a/cmd/smyrna/gui/gui.c +++ b/cmd/smyrna/gui/gui.c @@ -193,26 +193,6 @@ int savefiledlg(int filtercnt, char **filters, agxbuf * xbuf) return rv; } -/* - this function is designed to return a GtkTextView object's text in agxbuf - send an initialized agxbuf and a GtkTextView object - null termination is taken care by agxbuf -*/ -void get_gtktextview_text(GtkTextView * w, agxbuf * xbuf) -{ - int charcnt; - GtkTextBuffer *gtkbuf; - GtkTextIter startit; - GtkTextIter endit; - gtkbuf = gtk_text_view_get_buffer(w); - charcnt = gtk_text_buffer_get_char_count(gtkbuf); - gtk_text_buffer_get_start_iter(gtkbuf, &startit); - gtk_text_buffer_get_end_iter(gtkbuf, &endit); - - agxbput(xbuf, gtk_text_buffer_get_text(gtkbuf, &startit, &endit, 0)); -} - - void append_textview(GtkTextView * textv, const char *s, size_t bytes) {