public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: rmoseley@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Remove unneeded code since removal of CDTParser.
Date: Thu, 08 May 2008 18:54:00 -0000	[thread overview]
Message-ID: <20080508185436.18041.qmail@sourceware.org> (raw)

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


                 reply	other threads:[~2008-05-08 18:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080508185436.18041.qmail@sourceware.org \
    --to=rmoseley@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).