From 628079a91ca6d86a7915906d266e6fe5593bb846 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 7 Jul 2009 01:49:03 +0000 Subject: Remove obsolete function rufl_substitution_lookup(). svn path=/trunk/rufl/; revision=8365 --- rufl_substitution_lookup.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 rufl_substitution_lookup.c 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 - */ - -#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]; - } -} -- cgit v1.2.3