diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-09 13:46:18 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-09 13:46:18 +0100 |
commit | c4e32eb296f0a9cb548005f793698f404e473307 (patch) | |
tree | 01c1b9007734697c84c06896f325152c1e12c3f3 /src/html.cc | |
parent | 4166f9301d5e9c9e5547abe8773ea4383ef36fa8 (diff) |
remove no longer used functions
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/html.cc b/src/html.cc index e5bffa1a..105acda1 100644 --- a/src/html.cc +++ b/src/html.cc @@ -382,38 +382,6 @@ static void Html_add_textblock(DilloHtml *html, int space) } /* - * Given a font_size, this will return the correct 'level'. - * (or the closest, if the exact level isn't found). - */ -static int Html_fontsize_to_level(int fontsize) -{ - int i, level; - double normalized_size = fontsize / prefs.font_factor, - approximation = FontSizes[FontSizesNum-1] + 1; - - for (i = level = 0; i < FontSizesNum; i++) - if (approximation >= fabs(normalized_size - FontSizes[i])) { - approximation = fabs(normalized_size - FontSizes[i]); - level = i; - } else { - break; - } - - return level; -} - -/* - * Given a level of a font, this will return the correct 'size'. - */ -static int Html_level_to_fontsize(int level) -{ - level = MAX(0, level); - level = MIN(FontSizesNum - 1, level); - - return (int)rint(FontSizes[level]*prefs.font_factor); -} - -/* * Create and initialize a new DilloHtml class */ DilloHtml::DilloHtml(BrowserWindow *p_bw, const DilloUrl *url, |