]> sjero.net Git - wget/commitdiff
[svn] Remove ws_help; it doesn't make sense to invoke the help browser for
authorhniksic <devnull@localhost>
Sun, 22 Feb 2004 15:45:59 +0000 (07:45 -0800)
committerhniksic <devnull@localhost>
Sun, 22 Feb 2004 15:45:59 +0000 (07:45 -0800)
--help.

src/ChangeLog
src/main.c
src/mswindows.c
src/mswindows.h

index 4c1c6aa580d6ca32a7470efdfcbd568cb82f26d5..8512275c51e2e991d936d0fe6027b714852403e5 100644 (file)
@@ -1,3 +1,11 @@
+2004-02-20  David Fritz  <zeroxdf@att.net>
+
+       * main.c (print_help): Remove call to ws_help().
+
+       * mswindows.c (ws_help): Remove.
+
+       * mswindows.h (ws_help): Remove.
+
 2004-02-16  David Fritz  <zeroxdf@att.net>
 
        * init.c (home_dir): Use aprintf() instead of xmalloc()/sprintf().
index 951dc04b4ba8a6fd5593e7699c862f179e7d6996..884d9c89797100e73763016ade0463a758421bbc 100644 (file)
@@ -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);
 }
 
index 424bb7eb0eaa4435774c8c430365b2bc6bff7183..c0960ee24a41b2e1e0dc4c9c00b40ddccc2c5d25 100644 (file)
@@ -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)
 {
index 21f4b50f2016f0bd05352b6087cb985af42771b9..93c0cb91a6069d00e707cb27507705e4e82784f3 100644 (file)
@@ -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 <ws2tcpip.h>. */