summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/hash.c')
-rw-r--r--Build/source/texk/kpathsea/hash.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/Build/source/texk/kpathsea/hash.c b/Build/source/texk/kpathsea/hash.c
index 868e03893c4..49fa50b3797 100644
--- a/Build/source/texk/kpathsea/hash.c
+++ b/Build/source/texk/kpathsea/hash.c
@@ -26,16 +26,6 @@
/* The hash function. We go for simplicity here. */
/* All our hash tables are related to filenames. */
-#ifdef MONOCASE_FILENAMES
-#if defined(WIN32) && !defined(__i386_pc_gnu__)
-/* This is way faster under Win32. */
-#define TRANSFORM(x) ((unsigned)CharLower((LPTSTR)(BYTE)(x)))
-#else
-#define TRANSFORM(x) (tolower(x))
-#endif
-#else
-#define TRANSFORM(x) (x)
-#endif
static unsigned
hash (hash_table_type table, const_string key)
@@ -45,7 +35,7 @@ hash (hash_table_type table, const_string key)
/* Our keys aren't often anagrams of each other, so no point in
weighting the characters. */
while (*key != 0)
- n = (n + n + TRANSFORM (*key++)) % table.size;
+ n = (n + n + *key++) % table.size;
return n;
}