summaryrefslogtreecommitdiff
path: root/src/include/common/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/common/string.h')
-rw-r--r--src/include/common/string.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/include/common/string.h b/src/include/common/string.h
index 3d46b80918c..5f3ea71d613 100644
--- a/src/include/common/string.h
+++ b/src/include/common/string.h
@@ -12,19 +12,4 @@
extern bool pg_str_endswith(const char *str, const char *end);
-/*
- * Portable version of posix' strnlen.
- *
- * Returns the number of characters before a null-byte in the string pointed
- * to by str, unless there's no null-byte before maxlen. In the latter case
- * maxlen is returned.
- *
- * Use the system strnlen if provided, it's likely to be faster.
- */
-#ifdef HAVE_STRNLEN
-#define pg_strnlen(str, maxlen) strnlen(str, maxlen)
-#else
-extern size_t pg_strnlen(const char *str, size_t maxlen);
-#endif
-
#endif /* COMMON_STRING_H */