diff dwtx/text/edits/TextEdit.d @ 136:6dcb0baaa031

Regex removal of throws decls, some instanceof
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:20:40 +0200
parents 51e6e63f930e
children 93a6ec48fd28
line wrap: on
line diff
--- a/dwtx/text/edits/TextEdit.d	Sun Aug 24 01:52:31 2008 +0200
+++ b/dwtx/text/edits/TextEdit.d	Sun Aug 24 02:20:40 2008 +0200
@@ -125,7 +125,7 @@
     public static final int UPDATE_REGIONS= 1 << 1;
 
     private static class InsertionComparator : Comparator {
-        public int compare(Object o1, Object o2) throws MalformedTreeException {
+        public int compare(Object o1, Object o2)  {
             TextEdit edit1= cast(TextEdit)o1;
             TextEdit edit2= cast(TextEdit)o2;
 
@@ -357,7 +357,7 @@
      *  overlaps with one of its siblings or if the child edit's region
      *  isn't fully covered by this edit.
      */
-    public final void addChild(TextEdit child) throws MalformedTreeException {
+    public final void addChild(TextEdit child)  {
         internalAdd(child);
     }
 
@@ -370,7 +370,7 @@
      *
      * @see #addChild(TextEdit)
      */
-    public final void addChildren(TextEdit[] edits) throws MalformedTreeException {
+    public final void addChildren(TextEdit[] edits)  {
         for (int i= 0; i < edits.length; i++) {
             internalAdd(edits[i]);
         }
@@ -760,11 +760,11 @@
         return apply(document, CREATE_UNDO | UPDATE_REGIONS);
     }
 
-    UndoEdit dispatchPerformEdits(TextEditProcessor processor) throws BadLocationException {
+    UndoEdit dispatchPerformEdits(TextEditProcessor processor)  {
         return processor.executeDo();
     }
 
-    void dispatchCheckIntegrity(TextEditProcessor processor) throws MalformedTreeException {
+    void dispatchCheckIntegrity(TextEditProcessor processor)  {
         processor.checkIntegrityDo();
     }
 
@@ -794,7 +794,7 @@
         fChildren= children;
     }
 
-    void internalAdd(TextEdit child) throws MalformedTreeException {
+    void internalAdd(TextEdit child)  {
         child.aboutToBeAdded(this);
         if (child.isDeleted())
             throw new MalformedTreeException(this, child, TextEditMessages.getString("TextEdit.deleted_edit")); //$NON-NLS-1$
@@ -808,7 +808,7 @@
         child.internalSetParent(this);
     }
 
-    private int computeInsertionIndex(TextEdit edit) throws MalformedTreeException {
+    private int computeInsertionIndex(TextEdit edit)  {
         int size= fChildren.size();
         if (size is 0)
             return 0;
@@ -909,7 +909,7 @@
     void performSourceComputation(TextEditProcessor processor, IDocument document) {
     }
 
-    int traverseDocumentUpdating(TextEditProcessor processor, IDocument document) throws BadLocationException {
+    int traverseDocumentUpdating(TextEditProcessor processor, IDocument document)  {
         int delta= 0;
         if (fChildren !is null) {
             for (int i= fChildren.size() - 1; i >= 0; i--) {