diff options
author | Patrick Griffis <tingping@tingping.se> | 2018-01-19 04:28:51 -0500 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2018-02-06 17:06:50 -0500 |
commit | 5d3bf391032b572eb571c8a31ead645aae4edba9 (patch) | |
tree | c992d3f99bdd94247e0124323415b02ebd1c3c7d | |
parent | 234fe8698781f149df0e6928e48859f66b5e947b (diff) |
xtext: Remove unused code
-rw-r--r-- | src/fe-gtk/xtext.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index 6691277e..1798647e 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -147,26 +147,6 @@ static void gtk_xtext_search_fini (xtext_buffer *); static gboolean gtk_xtext_search_init (xtext_buffer *buf, const gchar *text, gtk_xtext_search_flags flags, GError **perr); static char * gtk_xtext_get_word (GtkXText * xtext, int x, int y, textentry ** ret_ent, int *ret_off, int *ret_len, GSList **slp); -/* Avoid warning messages for this unused function */ -#if 0 -/* gives width of a 8bit string - with no mIRC codes in it */ - -static int -gtk_xtext_text_width_8bit (GtkXText *xtext, unsigned char *str, int len) -{ - int width = 0; - - while (len) - { - width += xtext->fontwidth[*str]; - str++; - len--; - } - - return width; -} -#endif - #define xtext_draw_bg(xt,x,y,w,h) gdk_draw_rectangle(xt->draw_buf, xt->bgc, 1, x, y, w, h); /* ======================================= */ |