[vte] draw: Make one function static



commit 967a18718d3546901b2f9cbb00703358e7900c50
Author: Christian Persch <chpe gnome org>
Date:   Thu Oct 1 10:33:37 2015 +0200

    draw: Make one function static
    
    It's not used from outside vtedraw.cc.

 src/vtedraw.cc |    5 ++++-
 src/vtedraw.h  |    3 ---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vtedraw.cc b/src/vtedraw.cc
index dcabb6e..af89d93 100644
--- a/src/vtedraw.cc
+++ b/src/vtedraw.cc
@@ -923,7 +923,7 @@ _vte_draw_has_bold (struct _vte_draw *draw, guint style)
        return (draw->fonts[style ^ VTE_DRAW_BOLD] != draw->fonts[style]);
 }
 
-void
+static void
 _vte_draw_set_source_color_alpha (struct _vte_draw *draw,
                                   const PangoColor *color,
                                   guchar            alpha)
@@ -1522,6 +1522,9 @@ _vte_draw_text (struct _vte_draw *draw,
        }
 }
 
+/* The following two functions are unused since commit 154abade902850afb44115cccf8fcac51fc082f0,
+ * but let's keep them for now since they may become used again.
+ */
 gboolean
 _vte_draw_has_char (struct _vte_draw *draw, vteunistr c, guint style)
 {
diff --git a/src/vtedraw.h b/src/vtedraw.h
index 18710c1..f6c239c 100644
--- a/src/vtedraw.h
+++ b/src/vtedraw.h
@@ -101,9 +101,6 @@ void _vte_draw_fill_rectangle(struct _vte_draw *draw,
 void _vte_draw_draw_rectangle(struct _vte_draw *draw,
                              gint x, gint y, gint width, gint height,
                              const PangoColor *color, guchar alpha);
-void _vte_draw_set_source_color_alpha (struct _vte_draw *draw,
-                                       const PangoColor *color,
-                                       guchar            alpha);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]