Skip to content

Commit

Permalink
git-compat-util: drop mempcpy compat code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Feb 22, 2016
1 parent 7b35eaf commit 7eb45b5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,6 @@ extern int git_vsnprintf(char *str, size_t maxsize,
#ifdef __GLIBC_PREREQ
#if __GLIBC_PREREQ(2, 1)
#define HAVE_STRCHRNUL
#define HAVE_MEMPCPY
#endif
#endif

Expand All @@ -695,14 +694,6 @@ static inline char *gitstrchrnul(const char *s, int c)
}
#endif

#ifndef HAVE_MEMPCPY
#define mempcpy gitmempcpy
static inline void *gitmempcpy(void *dest, const void *src, size_t n)
{
return (char *)memcpy(dest, src, n) + n;
}
#endif

#ifdef NO_INET_PTON
int inet_pton(int af, const char *src, void *dst);
#endif
Expand Down

0 comments on commit 7eb45b5

Please sign in to comment.