Browse Source

Removed try...catch block left after debugging.

pull/59/merge
Andreas Weizel 12 years ago
parent
commit
6f021a0f30
  1. 5
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/CodeManipulation.cs

5
src/AddIns/BackendBindings/CSharpBinding/Project/Src/CodeManipulation.cs

@ -302,7 +302,6 @@ namespace CSharpBinding
// Swap them // Swap them
string currentNodeText = editor.Document.GetText(statementSelection.Start, statementSelection.End); string currentNodeText = editor.Document.GetText(statementSelection.Start, statementSelection.End);
try {
SwapText(editor.Document, statementSelection.Start, statementSelection.End, swapSiblingSelection.Start, swapSiblingSelection.End); SwapText(editor.Document, statementSelection.Start, statementSelection.End, swapSiblingSelection.Start, swapSiblingSelection.End);
// Move caret to the start of moved statement // Move caret to the start of moved statement
TextLocation upperLocation = new TextLocation[] {statementSelection.Start, swapSiblingSelection.Start}.Min(); TextLocation upperLocation = new TextLocation[] {statementSelection.Start, swapSiblingSelection.Start}.Min();
@ -313,10 +312,6 @@ namespace CSharpBinding
int currentMovedOffset = editor.Document.Text.IndexOf(currentNodeText, editor.Document.GetOffset(upperLocation)); int currentMovedOffset = editor.Document.Text.IndexOf(currentNodeText, editor.Document.GetOffset(upperLocation));
editor.Caret.Offset = currentMovedOffset; editor.Caret.Offset = currentMovedOffset;
} }
} catch (Exception ex) {
// SD.MessageService.ShowWarning(ex.ToString());
return;
}
} }
BlockStatement GetInnerBlockOfControlNode(AstNode node) BlockStatement GetInnerBlockOfControlNode(AstNode node)

Loading…
Cancel
Save