1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Remove unnecessary code.

This commit is contained in:
Giuseppe Scrivano 2010-10-21 13:27:31 +02:00
parent cea1f0718d
commit c5dc4d1664
2 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2010-10-21 Giuseppe Scrivano <gscrivano@gnu.org>
* retr.c (retrieve_url): Do not register HTML files twice.
Reported by: Manfred Koizar <mkoi-pg@aon.at>.
2010-10-18 Manfred Koizar <mkoi-pg@aon.at> (tiny change) 2010-10-18 Manfred Koizar <mkoi-pg@aon.at> (tiny change)
* html-url.c (tag_handle_link): Do not assume external links type * html-url.c (tag_handle_link): Do not assume external links type

View File

@ -871,20 +871,15 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file,
if (local_file && u && *dt & RETROKF) if (local_file && u && *dt & RETROKF)
{ {
register_download (u->url, local_file); register_download (u->url, local_file);
if (redirection_count && 0 != strcmp (origurl, u->url)) if (redirection_count && 0 != strcmp (origurl, u->url))
register_redirection (origurl, u->url); register_redirection (origurl, u->url);
if (*dt & TEXTHTML) if (*dt & TEXTHTML)
register_html (u->url, local_file); register_html (u->url, local_file);
if (*dt & RETROKF)
{ if (*dt & TEXTCSS)
register_download (u->url, local_file); register_css (u->url, local_file);
if (redirection_count && 0 != strcmp (origurl, u->url))
register_redirection (origurl, u->url);
if (*dt & TEXTHTML)
register_html (u->url, local_file);
if (*dt & TEXTCSS)
register_css (u->url, local_file);
}
} }
if (file) if (file)