From 226785838ae29964a0cb063d959273ab8e133da7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Mar 2014 11:56:58 +0100 Subject: [PATCH] url: remove shorten_string The function wasn't used and caused a compiler warning: url.c:1288:1: warning: 'shorten_length' defined but not used [-Wunused-function] --- src/ChangeLog | 4 ++++ src/url.c | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9b10ee8d..0d471ca8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-03-25 Daniel Stenberg + + * url.c (shorten_length): Remove unused function. + 2014-03-19 Yousong Zhou * init.c, main.c, options.h: Add option --start-pos for specifying diff --git a/src/url.c b/src/url.c index f32c7269..eda1f54e 100644 --- a/src/url.c +++ b/src/url.c @@ -1284,16 +1284,6 @@ append_null (struct growable *dest) *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)