From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18083 invoked by alias); 8 May 2008 18:54:36 -0000 Received: (qmail 18056 invoked by uid 9519); 8 May 2008 18:54:36 -0000 Date: Thu, 08 May 2008 18:54:00 -0000 Message-ID: <20080508185436.18041.qmail@sourceware.org> From: rmoseley@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Remove unneeded code since removal of CDTParser. X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: f98170d5f34723a732b006053b411e7d9ede0ab3 X-Git-Newrev: 855c3c2f1a1b4440791453e42e8716ace63326c2 Mailing-List: contact frysk-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-cvs-owner@sourceware.org Reply-To: frysk@sourceware.org X-SW-Source: 2008-q2/txt/msg00206.txt.bz2 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 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 * SourceWindow.java: Remove error message from pane label. + + * SourceBuffer.java(createtags): Remove. 2008-05-07 Rick Moseley 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