The function wasn't used and caused a compiler warning:
url.c:1288:1: warning: 'shorten_length' defined but not used [-Wunused-function]
+2014-03-25 Daniel Stenberg <daniel@haxx.se>
+
+ * url.c (shorten_length): Remove unused function.
+
2014-03-19 Yousong Zhou <yszhou4tech@gmail.com>
* init.c, main.c, options.h: Add option --start-pos for specifying
*TAIL (dest) = 0;
}
-/* Shorten DEST to LENGTH. */
-static void
-shorten_length (size_t length, struct growable *dest)
-{
- if (length < dest->tail)
- dest->tail = length;
-
- append_null (dest);
-}
-
/* Append CH to DEST. */
static void
append_char (char ch, struct growable *dest)