diff dwtx/text/edits/TextEditProcessor.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 26688fec6d23
line wrap: on
line diff
--- a/dwtx/text/edits/TextEditProcessor.d	Sun Aug 24 01:52:31 2008 +0200
+++ b/dwtx/text/edits/TextEditProcessor.d	Sun Aug 24 02:20:40 2008 +0200
@@ -90,8 +90,8 @@
         Assert.isNotNull(root);
         fDocument= document;
         fRoot= root;
-        if (fRoot instanceof MultiTextEdit)
-            (cast(MultiTextEdit)fRoot).defineRegion(0);
+        if ( auto mte = cast(MultiTextEdit)fRoot )
+            mte.defineRegion(0);
         fStyle= style;
         if (secondary) {
             fChecked= true;
@@ -191,7 +191,7 @@
 
     //---- checking --------------------------------------------------------------------
 
-    void checkIntegrityDo() throws MalformedTreeException {
+    void checkIntegrityDo()  {
         fSourceEdits= new ArrayList();
         fRoot.traverseConsistencyCheck(this, fDocument, fSourceEdits);
         if (fRoot.getExclusiveEnd() > fDocument.getLength())
@@ -205,7 +205,7 @@
 
     //---- execution --------------------------------------------------------------------
 
-    UndoEdit executeDo() throws BadLocationException {
+    UndoEdit executeDo()  {
         UndoCollector collector= new UndoCollector(fRoot);
         try {
             if (createUndo())
@@ -233,7 +233,7 @@
         }
     }
 
-    UndoEdit executeUndo() throws BadLocationException {
+    UndoEdit executeUndo()  {
         UndoCollector collector= new UndoCollector(fRoot);
         try {
             if (createUndo())