[Pinfo-devel] r238 - pinfo/branches/cxx/src

Nathanael Nerode neroden-guest at costa.debian.org
Mon Sep 26 02:02:20 UTC 2005


Author: neroden-guest
Date: 2005-09-26 02:02:19 +0000 (Mon, 26 Sep 2005)
New Revision: 238

Modified:
   pinfo/branches/cxx/src/filehandling_functions.cxx
   pinfo/branches/cxx/src/utils.cxx
   pinfo/branches/cxx/src/utils.h
Log:
Remove unused functions.  (!)


Modified: pinfo/branches/cxx/src/filehandling_functions.cxx
===================================================================
--- pinfo/branches/cxx/src/filehandling_functions.cxx	2005-09-26 01:51:46 UTC (rev 237)
+++ pinfo/branches/cxx/src/filehandling_functions.cxx	2005-09-26 02:02:19 UTC (rev 238)
@@ -761,34 +761,6 @@
 	infopaths.insert(infopaths.begin(), dirstring);
 }
 
-int
-isininfopath(char *name)
-{
-	for (typeof(infopaths.size()) i = 0; i < infopaths.size(); i++)
-	{
-		if (infopaths[i] == name)
-			return 1;		/* path already exists */
-	}
-	return 0;			/* path not found in previous links */
-}
-
-/* returns the number of chars ch in string str */
-unsigned int
-charcount(const char *str, const char ch)
-{
-	int num = 0;
-	const char *c;
-
-	c = str;
-
-	while (*c != '\0')
-	{
-		if (*c++ == ch)
-			num++;
-	}
-	return num;
-}
-
 /*
  * find the paths where info files are to be found,
  * and put them in the global var infopaths[]

Modified: pinfo/branches/cxx/src/utils.cxx
===================================================================
--- pinfo/branches/cxx/src/utils.cxx	2005-09-26 01:51:46 UTC (rev 237)
+++ pinfo/branches/cxx/src/utils.cxx	2005-09-26 02:02:19 UTC (rev 238)
@@ -315,21 +315,6 @@
 }
 
 void
-copy_stripped_from_regexp(char *src, char *dest)
-{
-	const char *forbidden = "*.\\()[]\n";
-	while (strchr(forbidden, *src) == NULL)
-	{
-		if (*src == 0)
-			break;
-		*dest = *src;
-		src++;
-		dest++;
-	}
-	*dest = 0;
-}
-
-void
 myendwin()
 {
 	curs_set(shell_cursor);

Modified: pinfo/branches/cxx/src/utils.h
===================================================================
--- pinfo/branches/cxx/src/utils.h	2005-09-26 01:51:46 UTC (rev 237)
+++ pinfo/branches/cxx/src/utils.h	2005-09-26 02:02:19 UTC (rev 238)
@@ -61,10 +61,7 @@
 
 /* handle localized `(y/n)' dialog box.  */
 int yesno (const char *prompt, int def);
-/* copies the first part of string, which is without regexp */
-void copy_stripped_from_regexp (char *src, char *dest);
 
-
 /* Block until something's on STDIN */
 void waitforgetch ();
 




More information about the Pinfo-devel mailing list