This is the mail archive of the frysk-cvs@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SCM] master: Remove unneeded code since removal of CDTParser.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]