summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-12-01 17:25:20 +0100
committerBram Moolenaar <Bram@vim.org>2016-12-01 17:25:20 +0100
commitb129a447f3b580d4c941869672b0557c52c37e4d (patch)
tree8f21d9d1f0f3fd42e4bf5d203c280a44b166d0a8 /src/misc2.c
parent65e08ee1d26aa7bf341ac0e0400839d696d1ab64 (diff)
downloadvim-git-b129a447f3b580d4c941869672b0557c52c37e4d.tar.gz
patch 8.0.0109v8.0.0109
Problem: Still checking if memcmp() exists while every system should have it now. Solution: Remove vim_memcmp(). (James McCoy, closes #1295)
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 7f23c43e9..baa614db1 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1740,27 +1740,6 @@ vim_memset(void *ptr, int c, size_t size)
}
#endif
-#ifdef VIM_MEMCMP
-/*
- * Return zero when "b1" and "b2" are the same for "len" bytes.
- * Return non-zero otherwise.
- */
- int
-vim_memcmp(void *b1, void *b2, size_t len)
-{
- char_u *p1 = (char_u *)b1, *p2 = (char_u *)b2;
-
- for ( ; len > 0; --len)
- {
- if (*p1 != *p2)
- return 1;
- ++p1;
- ++p2;
- }
- return 0;
-}
-#endif
-
/* skipped when generating prototypes, the prototype is in vim.h */
#ifdef VIM_MEMMOVE
/*