]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
xtext: Remove unused code
authorPatrick Griffis <redacted>
Fri, 19 Jan 2018 09:28:51 +0000 (04:28 -0500)
committerPatrick Griffis <redacted>
Tue, 6 Feb 2018 22:06:50 +0000 (17:06 -0500)
src/fe-gtk/xtext.c

index 6691277e7eff008259ebe9c951856aca74fbec2f..1798647e38e8ce1f07881d0e8ec98615550ad2cf 100644 (file)
@@ -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);
 
 /* ======================================= */