[gnumeric] Remove unused functions.



commit 3a187e71ff660c4cef42dc8a7fa729b9a1d51cb3
Author: Morten Welinder <terra gnome org>
Date:   Mon May 23 09:30:08 2011 -0400

    Remove unused functions.

 src/widgets/ChangeLog              |    5 +++++
 src/widgets/widget-font-selector.c |   24 ------------------------
 src/widgets/widget-font-selector.h |    3 ---
 3 files changed, 5 insertions(+), 27 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index aa0348c..d0fe9a3 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-23  Morten Welinder  <terra gnome org>
+
+	* widget-font-selector.c (font_selector_get_pango)
+	(font_selector_set_from_pango): Unused.  Remove.
+
 2011-05-22  Morten Welinder  <terra gnome org>
 
 	* gnumeric-expr-entry.c (gnm_expr_entry_new_glade): Unused.
diff --git a/src/widgets/widget-font-selector.c b/src/widgets/widget-font-selector.c
index f639bc1..c962ca7 100644
--- a/src/widgets/widget-font-selector.c
+++ b/src/widgets/widget-font-selector.c
@@ -589,30 +589,6 @@ font_selector_set_points (FontSelector *fs,
 }
 
 void
-font_selector_set_from_pango (FontSelector *fs, PangoFontDescription const *desc)
-{
-	font_selector_set_name (fs, pango_font_description_get_family (desc));
-	font_selector_set_style (fs,
-		pango_font_description_get_weight (desc) >= PANGO_WEIGHT_BOLD,
-		pango_font_description_get_style (desc) != PANGO_STYLE_NORMAL);
-	font_selector_set_points (fs,
-		pango_font_description_get_size (desc) / PANGO_SCALE);
-}
-
-void
-font_selector_get_pango (FontSelector *fs, PangoFontDescription *desc)
-{
-	pango_font_description_set_family (desc,
-		gnm_style_get_font_name (fs->mstyle));
-	pango_font_description_set_weight (desc,
-		gnm_style_get_font_bold (fs->mstyle) ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL);
-	pango_font_description_set_style (desc,
-		gnm_style_get_font_italic (fs->mstyle) ? PANGO_STYLE_ITALIC : PANGO_STYLE_NORMAL);
-	pango_font_description_set_size (desc,
-		gnm_style_get_font_size (fs->mstyle) * PANGO_SCALE);
-}
-
-void
 font_selector_editable_enters (FontSelector *fs, GtkWindow *dialog)
 {
 	gnumeric_editable_enters (dialog,
diff --git a/src/widgets/widget-font-selector.h b/src/widgets/widget-font-selector.h
index 74c5043..89d67ef 100644
--- a/src/widgets/widget-font-selector.h
+++ b/src/widgets/widget-font-selector.h
@@ -25,8 +25,5 @@ void font_selector_set_color       (FontSelector *fs, GnmColor *color);
 void font_selector_set_points      (FontSelector *fs, double point_size);
 void font_selector_editable_enters (FontSelector *fs, GtkWindow *dialog);
 
-void font_selector_set_from_pango  (FontSelector *fs, PangoFontDescription const *desc);
-void font_selector_get_pango	   (FontSelector *fs, PangoFontDescription *desc);
-
 #endif /* GNUMERIC_WIDGET_FONT_SELECTOR_H */
 



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