Skip to content

Commit 7eb45b5

Browse files
peffgitster
authored andcommitted
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>
1 parent 7b35eaf commit 7eb45b5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

git-compat-util.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,6 @@ extern int git_vsnprintf(char *str, size_t maxsize,
681681
#ifdef __GLIBC_PREREQ
682682
#if __GLIBC_PREREQ(2, 1)
683683
#define HAVE_STRCHRNUL
684-
#define HAVE_MEMPCPY
685684
#endif
686685
#endif
687686

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

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-
706697
#ifdef NO_INET_PTON
707698
int inet_pton(int af, const char *src, void *dst);
708699
#endif

0 commit comments

Comments
 (0)