public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Remove unneeded code since removal of CDTParser.
@ 2008-05-08 18:54 rmoseley
  0 siblings, 0 replies; only message in thread
From: rmoseley @ 2008-05-08 18:54 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  855c3c2f1a1b4440791453e42e8716ace63326c2 (commit)
      from  f98170d5f34723a732b006053b411e7d9ede0ab3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 855c3c2f1a1b4440791453e42e8716ace63326c2
Author: Rick Moseley <rmoseley@localhost.localdomain>
Date:   Thu May 8 13:53:42 2008 -0500

    Remove unneeded code since removal of CDTParser.
    
    * SourceBuffer.java(createtags): Remove.

-----------------------------------------------------------------------

Summary of changes:
 frysk-gui/frysk/gui/srcwin/ChangeLog         |    2 +
 frysk-gui/frysk/gui/srcwin/SourceBuffer.java |   78 --------------------------
 2 files changed, 2 insertions(+), 78 deletions(-)

First 500 lines of diff:
diff --git a/frysk-gui/frysk/gui/srcwin/ChangeLog b/frysk-gui/frysk/gui/srcwin/ChangeLog
index 7d18fa0..81b6545 100644
--- a/frysk-gui/frysk/gui/srcwin/ChangeLog
+++ b/frysk-gui/frysk/gui/srcwin/ChangeLog
@@ -1,6 +1,8 @@
 2008-05-08  Rick Moseley  <rmoseley@redhat.com>
 
 	* SourceWindow.java: Remove error message from pane label.
+	
+	* SourceBuffer.java(createtags): Remove.
 
 2008-05-07  Rick Moseley  <rmoseley@redhat.com>
 
diff --git a/frysk-gui/frysk/gui/srcwin/SourceBuffer.java b/frysk-gui/frysk/gui/srcwin/SourceBuffer.java
index f0a624e..7acdd59 100644
--- a/frysk-gui/frysk/gui/srcwin/SourceBuffer.java
+++ b/frysk-gui/frysk/gui/srcwin/SourceBuffer.java
@@ -1097,7 +1097,6 @@ public class SourceBuffer extends TextBuffer {
 		String bufferText = loadLines(lines);
 		this.deleteText(this.getStartIter(), this.getEndIter());
 		this.insertText(bufferText);
-		this.createTags();
 		return;
 	    }
 	}
@@ -1112,7 +1111,6 @@ public class SourceBuffer extends TextBuffer {
 
 	this.deleteText(this.getStartIter(), this.getEndIter());
 	this.insertText(bufferText);
-	this.createTags();
     }
 
     public void clear() {
@@ -1184,82 +1182,6 @@ public class SourceBuffer extends TextBuffer {
     }
 
     /*
-         * Reads through the DOM and creates all the tags necessary
-         */
-    protected void createTags() {
-	DOMSource source = this.scope.getLineXXX().getDOMSource();
-
-	// System.out.println("Creating tags for " +
-        // this.scope.getMethodName());
-	// If there is no source or the parser errored while parsing, return 
-	if (source == null || source.getParserError())
-	    return;
-
-	Iterator lines = source.getLines();
-
-	// Iterate through all the lines
-	while (lines.hasNext()) {
-	    DOMLine line = new DOMLine((Element) lines.next());
-
-	    Iterator tags = line.getTags();
-	    int lineOffset = line.getOffset();
-
-	    // Iterator though all the tags on the line
-	    while (tags.hasNext()) {
-		Element e = (Element) tags.next();
-		DOMTag tag = new DOMTag(e);
-
-		String type = tag.getType();
-
-		// if (type.equals(DOMTagTypes.FUNCTION_BODY))
-		if (type.equals(DOMTagTypes.FUNCTION_CALL)) {
-		    String funcName = tag.getToken();
-
-		    String[] nameArray = funcName.split("\\s*");
-		    StringBuffer buffer = new StringBuffer();
-
-		    for (int i = 0; i < nameArray.length; i++)
-			buffer.append(nameArray[i]);
-
-		    funcName = buffer.toString();
-
-		    this.functions.add(funcName);
-		    this.createMark(funcName, this.getLineIter(line
-			    .getLineNum()), true);
-
-		} else if (type.equals(DOMTagTypes.FUNCTION_BODY)) {
-		} else {
-		    this.applyTag(type, this.getIter(lineOffset
-			    + tag.getStart()), this.getIter(lineOffset
-			    + tag.getStart() + tag.getLength()));
-		}
-	    }
-
-	    Iterator inlines = source.getInlines(line.getLineNum());
-
-	    while (inlines.hasNext()) {
-		DOMInlineInstance func = new DOMInlineInstance(
-			(Element) inlines.next());
-
-		this.applyTag(DOMTagTypes.FUNCTION, this.getIter(lineOffset
-			+ func.getStart()), this.getIter(lineOffset
-			+ func.getStart() + func.getEnd()));
-	    }
-	}// end lines.hasNext()
-
-	// Now iterate through the comments
-	CommentList list = (CommentList) comments.get(source.getFileName());
-
-	while (list != null) {
-	    // this.applyTag(COMMENT_TAG, this.getIter(list.getStartLine(),
-	    // list.getStartCol()),
-	    // this.getIter(list.getEndLine(), list.getEndCol()));
-
-	    list = list.getNextComment();
-	}
-    }
-
-    /*
          * Checks whether or not the current search should be restarted by
          * comparing the string last searched with the new string
          */


hooks/post-receive
--
frysk system monitor/debugger


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-08 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-08 18:54 [SCM] master: Remove unneeded code since removal of CDTParser rmoseley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).