mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
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]
This commit is contained in:
parent
320cfdcb65
commit
226785838a
@ -1,3 +1,7 @@
|
|||||||
|
2014-03-25 Daniel Stenberg <daniel@haxx.se>
|
||||||
|
|
||||||
|
* url.c (shorten_length): Remove unused function.
|
||||||
|
|
||||||
2014-03-19 Yousong Zhou <yszhou4tech@gmail.com>
|
2014-03-19 Yousong Zhou <yszhou4tech@gmail.com>
|
||||||
|
|
||||||
* init.c, main.c, options.h: Add option --start-pos for specifying
|
* init.c, main.c, options.h: Add option --start-pos for specifying
|
||||||
|
10
src/url.c
10
src/url.c
@ -1284,16 +1284,6 @@ append_null (struct growable *dest)
|
|||||||
*TAIL (dest) = 0;
|
*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. */
|
/* Append CH to DEST. */
|
||||||
static void
|
static void
|
||||||
append_char (char ch, struct growable *dest)
|
append_char (char ch, struct growable *dest)
|
||||||
|
Loading…
Reference in New Issue
Block a user