diff options
author | James Bursa <james@netsurf-browser.org> | 2009-07-07 01:49:03 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2009-07-07 01:49:03 +0000 |
commit | 628079a91ca6d86a7915906d266e6fe5593bb846 (patch) | |
tree | 379982ff71009c55e1be39bbc610a19e8782d4ef | |
parent | 7ceae2c37b9c79b5387b7f5930bf918888dc1928 (diff) | |
download | librufl-628079a91ca6d86a7915906d266e6fe5593bb846.tar.gz librufl-628079a91ca6d86a7915906d266e6fe5593bb846.tar.bz2 |
Remove obsolete function rufl_substitution_lookup().
svn path=/trunk/rufl/; revision=8365
-rw-r--r-- | rufl_substitution_lookup.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/rufl_substitution_lookup.c b/rufl_substitution_lookup.c deleted file mode 100644 index fba76aa..0000000 --- a/rufl_substitution_lookup.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This file is part of RUfl - * Licensed under the MIT License, - * http://www.opensource.org/licenses/mit-license - * Copyright 2005 James Bursa <james@semichrome.net> - */ - -#include "rufl_internal.h" - - -/** - * Look up a character in the substitution table. - * - * \param c character to look up - * \return font number containing the character, or NOT_AVAILABLE - */ - -unsigned int rufl_substitution_lookup(unsigned int c) -{ - unsigned int block = c >> 8; - - if (256 < block) - return NOT_AVAILABLE; - - if (rufl_substitution_table->index[block] == BLOCK_NONE_AVAILABLE) - return NOT_AVAILABLE; - else { - return rufl_substitution_table->block - [rufl_substitution_table->index[block]] - [c & 255]; - } -} |