diff scripts/gethelp.cc @ 6528:b3e973d63c1c

[project @ 2007-04-16 17:13:08 by jwe]
author jwe
date Mon, 16 Apr 2007 17:13:09 +0000
parents 64c444ac1fee
children 93c65f2a5668
line wrap: on
line diff
--- a/scripts/gethelp.cc
+++ b/scripts/gethelp.cc
@@ -12,32 +12,10 @@
 static bool
 looks_like_octave_copyright (const std::string& s)
 {
-  bool retval = false;
-
-  std::string t = s.substr (0, 14);
-
-  if (t == "Copyright (C) ")
-    {
-      size_t pos = s.find ('\n');
-
-      if (pos != NPOS)
-	{
-	  pos = s.find ('\n', pos + 1);
+  // Perhaps someday we will want to do more here, so leave this as a
+  // separate function.
 
-	  if (pos != NPOS)
-	    {
-	      pos++;
-
-	      t = s.substr (pos, 28);
-
-	      if (t == "This file is part of Octave."
-		  || t == "This program is free softwar")
-		retval = true;
-	    }
-	}
-    }
-
-  return retval;
+  return (s.substr (0, 9) == "Copyright");
 }
 
 // Eat whitespace and comments from FFILE, returning the text of the