diff dwtx/jface/text/source/DefaultCharacterPairMatcher.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 7d818bd32d63
children 75302ef3f92f
line wrap: on
line diff
--- a/dwtx/jface/text/source/DefaultCharacterPairMatcher.d	Sun Aug 24 01:52:31 2008 +0200
+++ b/dwtx/jface/text/source/DefaultCharacterPairMatcher.d	Sun Aug 24 02:20:40 2008 +0200
@@ -152,7 +152,7 @@
     /*
      * Performs the actual work of matching for #match(IDocument, int).
      */
-    private IRegion performMatch(IDocument doc, int caretOffset) throws BadLocationException {
+    private IRegion performMatch(IDocument doc, int caretOffset)  {
         final int charOffset= caretOffset - 1;
         final char prevChar= doc.getChar(Math.max(charOffset, 0));
         if (!fPairs.contains(prevChar)) return null;
@@ -184,7 +184,7 @@
      * @return the index of the end character if it was found, otherwise -1
      * @throws BadLocationException
      */
-    private int findMatchingPeer(DocumentPartitionAccessor doc, char start, char end, bool searchForward, int boundary, int startPos) throws BadLocationException {
+    private int findMatchingPeer(DocumentPartitionAccessor doc, char start, char end, bool searchForward, int boundary, int startPos)  {
         int pos= startPos;
         while (pos !is boundary) {
             final char c= doc.getChar(pos);
@@ -246,7 +246,7 @@
          * @return the character at the offset
          * @throws BadLocationException
          */
-        public char getChar(int pos) throws BadLocationException {
+        public char getChar(int pos)  {
             return fDocument.getChar(pos);
         }
         
@@ -261,7 +261,7 @@
          * @return true exactly if the position represents a valid match
          * @throws BadLocationException
          */
-        public bool isMatch(int pos, char end) throws BadLocationException {
+        public bool isMatch(int pos, char end)  {
             return getChar(pos) is end && inPartition(pos);
         }