diff --git a/src/stralloc.h b/src/stralloc.h
index 4c8d009707c3f18d9461a49b81afa4ccb82c237c..164546c42b30f0dfc830a4218f4745b5537dbf63 100644
--- a/src/stralloc.h
+++ b/src/stralloc.h
@@ -336,16 +336,6 @@ ptrdiff_t generic_quick_binary_strcmp(const char *a,
                                       const char *b,
                                       ptrdiff_t blen, int bsize) ATTRIBUTE((pure));
 
-/* Does not take locale into account */
-
-static INLINE ptrdiff_t __attribute__((unused))
-                      my_quick_pcharpcmp(const PCHARP a, ptrdiff_t alen,
-                                         const PCHARP b, ptrdiff_t blen)
-{
-  return generic_quick_binary_strcmp(a.ptr, alen, a.shift,
-                                     b.ptr, blen, b.shift);
-}
-
 ptrdiff_t generic_find_binary_prefix(const char *a,
                                      ptrdiff_t alen, int asize,
                                      const char *b,