diff options
author | Timothy Arceri <[email protected]> | 2017-03-08 14:36:14 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-12 17:43:06 +1100 |
commit | b4b1dcb2c152519648a52ce415dc702d8c0bc7a6 (patch) | |
tree | e4ff26d2199da5f8d1b9bd0931e3a7fcab2cda9d /src/gallium/auxiliary/util | |
parent | b607aad8e1a40c473176e31e11deaa26477c54c0 (diff) |
gallium/util: remove unused util_memmove()
This is not used anywhere and Visual Studio looks to have
supported memmove() for a long time if not always.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_string.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/gallium/auxiliary/util/u_string.h b/src/gallium/auxiliary/util/u_string.h index adcdf200ec8..9765aaa0140 100644 --- a/src/gallium/auxiliary/util/u_string.h +++ b/src/gallium/auxiliary/util/u_string.h @@ -179,25 +179,6 @@ util_strstr(const char *haystack, const char *needle) return NULL; } -static inline void * -util_memmove(void *dest, const void *src, size_t n) -{ - char *p = (char *)dest; - const char *q = (const char *)src; - if (dest < src) { - while (n--) - *p++ = *q++; - } - else - { - p += n; - q += n; - while (n--) - *--p = *--q; - } - return dest; -} - #define util_strcasecmp stricmp @@ -212,7 +193,6 @@ util_memmove(void *dest, const void *src, size_t n) #define util_strncmp strncmp #define util_strncat strncat #define util_strstr strstr -#define util_memmove memmove #define util_strcasecmp strcasecmp #endif |