changeset 725:254b2de729dc

remove a_Html_set_top_font() which is no longer used
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Sat, 03 Jan 2009 22:51:31 +0100
parents 627a37303512
children f9099e82be08
files src/html.cc src/html_common.hh src/table.cc
diffstat 3 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Sat Jan 03 22:48:49 2009 +0100
+++ b/src/html.cc	Sat Jan 03 22:51:31 2009 +0100
@@ -295,31 +295,6 @@
 }
 
 /*
- * Set the font at the top of the stack. BImask specifies which
- * attributes in BI should be changed.
- */
-void a_Html_set_top_font(DilloHtml *html, const char *name, int size,
-                         int BI, int BImask)
-{
-#if 0
-   FontAttrs font_attrs;
-
-   font_attrs = *html->styleEngine->style ()->font;
-   if (name)
-      font_attrs.name = name;
-   if (size)
-      font_attrs.size = size;
-   if (BImask & 1)
-      font_attrs.weight = (BI & 1) ? 700 : 400;
-   if (BImask & 2)
-      font_attrs.style = (BI & 2) ? FONT_STYLE_ITALIC : FONT_STYLE_NORMAL;
-
-   HTML_SET_TOP_ATTR (html, font,
-                      Font::create (HT2LT(html), &font_attrs));
-#endif
-}
-
-/*
  * Evaluates the ALIGN attribute (left|center|right|justify) and
  * sets the style at the top of the stack.
  */
--- a/src/html_common.hh	Sat Jan 03 22:48:49 2009 +0100
+++ b/src/html_common.hh	Sat Jan 03 22:51:31 2009 +0100
@@ -273,7 +273,5 @@
 bool a_Html_tag_set_valign_attr(DilloHtml *html,
                                 const char *tag, int tagsize,
                                 CssPropertyList *props);
-void a_Html_set_top_font(DilloHtml *html, const char *name, int size,
-                         int BI, int BImask);
 
 #endif /* __HTML_COMMON_HH__ */
--- a/src/table.cc	Sat Jan 03 22:48:49 2009 +0100
+++ b/src/table.cc	Sat Jan 03 22:51:31 2009 +0100
@@ -209,7 +209,6 @@
  */
 void Html_tag_open_th(DilloHtml *html, const char *tag, int tagsize)
 {
-   a_Html_set_top_font(html, NULL, 0, 1, 1);
    Html_tag_open_table_cell (html, tag, tagsize,
                              dw::core::style::TEXT_ALIGN_CENTER);
 }