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

Nathanael Nerode neroden-guest at costa.debian.org
Fri Sep 2 08:03:18 UTC 2005


Author: neroden-guest
Date: 2005-09-02 08:03:17 +0000 (Fri, 02 Sep 2005)
New Revision: 142

Modified:
   pinfo/branches/cxx/src/initializelinks.cxx
   pinfo/branches/cxx/src/initializelinks.h
   pinfo/branches/cxx/src/mainfunction.cxx
Log:
Get rid of freelinks().


Modified: pinfo/branches/cxx/src/initializelinks.cxx
===================================================================
--- pinfo/branches/cxx/src/initializelinks.cxx	2005-09-02 07:41:03 UTC (rev 141)
+++ pinfo/branches/cxx/src/initializelinks.cxx	2005-09-02 08:03:17 UTC (rev 142)
@@ -84,12 +84,6 @@
 	return len;
 }
 
-void
-freelinks()			/* frees space allocated previously by node-links */
-{
-	hyperobjects.clear();
-}
-
 /*
  * Finds url end.  It is recognized by an invalid character.
  * FIXME: That's not a sufficient test.

Modified: pinfo/branches/cxx/src/initializelinks.h
===================================================================
--- pinfo/branches/cxx/src/initializelinks.h	2005-09-02 07:41:03 UTC (rev 141)
+++ pinfo/branches/cxx/src/initializelinks.h	2005-09-02 08:03:17 UTC (rev 142)
@@ -21,7 +21,6 @@
 
 #ifndef __INITIALIZELINKS_H
 #define __INITIALIZELINKS_H
-void freelinks ();		/* frees node-links */
 /* initializes node links.  */
 void initializelinks (char *line1, char *line2, int line);
 /*

Modified: pinfo/branches/cxx/src/mainfunction.cxx
===================================================================
--- pinfo/branches/cxx/src/mainfunction.cxx	2005-09-02 07:41:03 UTC (rev 141)
+++ pinfo/branches/cxx/src/mainfunction.cxx	2005-09-02 08:03:17 UTC (rev 142)
@@ -135,7 +135,7 @@
 	maxy = 25;
 #endif /*  getmaxyx */
 	/* Clear old hyperlink info */
-	freelinks();
+	hyperobjects.clear();
 	for (int i = 1; i < Lines; i++)	/* initialize node-links for every line */
 	{
 		initializelinks(Message[i], Message[i + 1], i);




More information about the Pinfo-devel mailing list