git-compat-util: drop mempcpy compat code
There are no callers of this left, as the last one was dropped in the previous patch. And there are not likely to be new ones, as the function has been around since 2010 without gaining any new callers. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Feb 22, 2016 at 17:45 UTC
7eb45b5f78e257a682ec825839b4b33e025a9615
1 file changed
-9
git-compat-util.h
-9
@@ -681,7 +681,6 @@ extern int git_vsnprintf(char *str, size_t maxsize,
681
#ifdef __GLIBC_PREREQ
682
#if __GLIBC_PREREQ(2, 1)
683
#define HAVE_STRCHRNUL
684
-#define HAVE_MEMPCPY
684
#endif
685
#endif
686
@@ -695,14 +694,6 @@ static inline char *gitstrchrnul(const char *s, int c)
694
}
695
#endif
696
698
-#ifndef HAVE_MEMPCPY
699
-#define mempcpy gitmempcpy
700
-static inline void *gitmempcpy(void *dest, const void *src, size_t n)
701
-{
702
- return (char *)memcpy(dest, src, n) + n;
703
-}
704
-#endif
705
-
697
#ifdef NO_INET_PTON
698
int inet_pton(int af, const char *src, void *dst);
699
#endif