[gnumeric] go_combo_color_get_style_color -- defined, but not used.



commit 71e7eff6abcbd5cd321efdd6543fa419134d3d20
Author: Morten Welinder <terra gnome org>
Date:   Mon May 23 09:40:22 2011 -0400

    go_combo_color_get_style_color -- defined, but not used.

 src/gui-util.c |   20 --------------------
 src/gui-util.h |    2 --
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/gui-util.c b/src/gui-util.c
index 36dfcf0..a1bdc09 100644
--- a/src/gui-util.c
+++ b/src/gui-util.c
@@ -672,26 +672,6 @@ gnumeric_create_popup_menu (GnumericPopupMenuElement const *element,
 	gnumeric_popup_menu (GTK_MENU (menu), event);
 }
 
-/**
- * go_combo_color_get_style_color :
- *
- * A utility wrapper to map between gal's colour combo and gnumeric's StyleColors.
- */
-GnmColor *
-go_combo_color_get_style_color (GtkWidget *go_combo_color)
-{
-	GnmColor *sc = NULL;
-	guint16   r, g, b;
-	GOColor color = go_combo_color_get_color (GO_COMBO_COLOR (go_combo_color), NULL);
-	if (GO_COLOR_UINT_A (color) >= 0x80) {
-		r  = GO_COLOR_UINT_R (color); r |= (r << 8);
-		g  = GO_COLOR_UINT_G (color); g |= (g << 8);
-		b  = GO_COLOR_UINT_B (color); b |= (b << 8);
-		sc = style_color_new_i16 (r, g, b);
-	}
-	return sc;
-}
-
 void
 gnumeric_init_help_button (GtkWidget *w, char const *link)
 {
diff --git a/src/gui-util.h b/src/gui-util.h
index 6caf5c0..1fb803a 100644
--- a/src/gui-util.h
+++ b/src/gui-util.h
@@ -70,8 +70,6 @@ void gnumeric_create_popup_menu (GnumericPopupMenuElement const *elements,
 
 #define gnumeric_filter_modifiers(a) ((a) &(~(GDK_LOCK_MASK|GDK_MOD2_MASK|GDK_MOD5_MASK)))
 
-GnmColor *go_combo_color_get_style_color (GtkWidget *color_combo);
-
 void gnumeric_init_help_button	(GtkWidget *w, char const *link);
 
 char *gnumeric_textbuffer_get_text (GtkTextBuffer *buf);



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