Skip to contentSkip to conversation

perf tools: Ditch unused strchrnul() reimplementation

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Apr 20, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  1b5ad16c7aa7177512ce141e345ff36b9f1a6136
Gitweb:     http://git.kernel.org/tip/1b5ad16c7aa7177512ce141e345ff36b9f1a6136
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 18 Apr 2017 15:39:45 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 19 Apr 2017 13:01:57 -0300

perf tools: Ditch unused strchrnul() reimplementation

Remnants from the git codebase.

---
 tools/perf/util/util.h | 16 ----------------
 1 file changed, 16 deletions(-)
tools/perf/util/util.h +0 -16
index d79f3c2..2a1166f 100644
@@ -56,22 +56,6 @@ void set_warning_routine(void (*routine)(const char *err, va_list params));
 int prefixcmp(const char *str, const char *prefix);
 void set_buildid_dir(const char *dir);
 
-#ifdef __GLIBC_PREREQ
-#if __GLIBC_PREREQ(2, 1)
-#define HAVE_STRCHRNUL
-#endif
-#endif
-
-#ifndef HAVE_STRCHRNUL
-#define strchrnul gitstrchrnul
-static inline char *gitstrchrnul(const char *s, int c)
-{
-	while (*s && *s != c)
-		s++;
-	return (char *)s;
-}
-#endif
-
 static inline void *zalloc(size_t size)
 {
 	return calloc(1, size);