From: hniksic Date: Sun, 22 Feb 2004 15:45:59 +0000 (-0800) Subject: [svn] Remove ws_help; it doesn't make sense to invoke the help browser for X-Git-Tag: v1.13~1313 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=eef22ee91e9b104e3338d9026d3de4f8cca0183f [svn] Remove ws_help; it doesn't make sense to invoke the help browser for --help. --- diff --git a/src/ChangeLog b/src/ChangeLog index 4c1c6aa5..8512275c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2004-02-20 David Fritz + + * main.c (print_help): Remove call to ws_help(). + + * mswindows.c (ws_help): Remove. + + * mswindows.h (ws_help): Remove. + 2004-02-16 David Fritz * init.c (home_dir): Use aprintf() instead of xmalloc()/sprintf(). diff --git a/src/main.c b/src/main.c index 951dc04b..884d9c89 100644 --- a/src/main.c +++ b/src/main.c @@ -621,9 +621,6 @@ Recursive accept/reject:\n"), for (i = 0; i < countof (help); i++) fputs (_(help[i]), stdout); -#ifdef WINDOWS - ws_help (exec_name); -#endif exit (0); } diff --git a/src/mswindows.c b/src/mswindows.c index 424bb7eb..c0960ee2 100644 --- a/src/mswindows.c +++ b/src/mswindows.c @@ -221,28 +221,6 @@ ws_mypath (void) return wspathsave; } -void -ws_help (const char *name) -{ - char *mypath = ws_mypath (); - - if (mypath) - { - struct stat sbuf; - char *buf = (char *)alloca (strlen (mypath) + strlen (name) + 4 + 1); - sprintf (buf, "%s%s.HLP", mypath, name); - if (stat (buf, &sbuf) == 0) - { - printf (_("Starting WinHelp %s\n"), buf); - WinHelp (NULL, buf, HELP_INDEX, 0); - } - else - { - printf ("%s: %s\n", buf, strerror (errno)); - } - } -} - void ws_startup (void) { diff --git a/src/mswindows.h b/src/mswindows.h index 21f4b50f..93c0cb91 100644 --- a/src/mswindows.h +++ b/src/mswindows.h @@ -159,7 +159,6 @@ void ws_startup (void); void ws_changetitle (const char*, int); void ws_percenttitle (double); char *ws_mypath (void); -void ws_help (const char *); void windows_main_junk (int *, char **, char **); /* Things needed for IPv6; missing in . */