chiark / gitweb /
basic/string-util: make ellipsize() inline
[elogind.git] / src / basic / string-util.c
index cb6428e8a825a4382252b0bb8c602b9a83ad0eba..bdaa42084b423c36a72b9be91710b25f588d93f3 100644 (file)
@@ -611,13 +611,6 @@ char *ellipsize_mem(const char *s, size_t old_length, size_t new_length, unsigne
         return e;
 }
 
-char *ellipsize(const char *s, size_t length, unsigned percent) {
-        if (length == (size_t) -1)
-                return strdup(s);
-
-        return ellipsize_mem(s, strlen(s), length, percent);
-}
-
 char *cellescape(char *buf, size_t len, const char *s) {
         /* Escape and ellipsize s into buffer buf of size len. Only non-control ASCII
          * characters are copied as they are, everything else is escaped. The result