bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH] url: remove shorten_string


From: Daniel Stenberg
Subject: [Bug-wget] [PATCH] url: remove shorten_string
Date: Tue, 25 Mar 2014 12:00:34 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

The function wasn't used and caused a compiler warning:

url.c:1288:1: warning: 'shorten_length' defined but not used [-Wunused-function]
---
 src/url.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/url.c b/src/url.c
index f32c726..eda1f54 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)
--
1.9.1


--

 / daniel.haxx.se

Attachment: 0001-url-remove-shorten_string.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]