summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-11-18 19:23:55 +0100
committerMarek Olšák <[email protected]>2016-11-22 18:05:51 +0100
commit6dfdf52b6af416fccf28420d64585d809d745b0a (patch)
tree4821db97da63a428a0cbf86b7e40f8f6c12192be /src/mesa/main/imports.c
parent86514d84e0beec47c82da4888db12bf07f33cb83 (diff)
mesa: use util_hash_crc32 instead of _mesa_str_checksum
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 808b8f67302..de4dd0e33d5 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -252,28 +252,6 @@ _mesa_bitcount_64(uint64_t n)
/*@}*/
-/**********************************************************************/
-/** \name String */
-/*@{*/
-
-
-/** Compute simple checksum/hash for a string */
-unsigned int
-_mesa_str_checksum(const char *str)
-{
- /* This could probably be much better */
- unsigned int sum, i;
- const char *c;
- sum = i = 1;
- for (c = str; *c; c++, i++)
- sum += *c * (i % 100);
- return sum + i;
-}
-
-
-/*@}*/
-
-
/** Needed due to #ifdef's, above. */
int
_mesa_vsnprintf(char *str, size_t size, const char *fmt, va_list args)