diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs index 924a2ab513..5a9318c687 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs @@ -753,16 +753,6 @@ namespace MonoDevelop.SourceEditor Load (fileOpenInformation.FileName, fileOpenInformation.Encoding, fileOpenInformation.IsReloadOperation); } - MonoDevelop.Ide.Gui.Document ownerDocument; - protected MonoDevelop.Ide.Gui.Document OwnerDocument { - get { return ownerDocument; } - } - - protected virtual void HandleDocumentParsed (object sender, EventArgs e) - { - widget.UpdateParsedDocument (ownerDocument.ParsedDocument); - } - protected virtual string ProcessLoadText (string text) { return text; @@ -973,11 +963,6 @@ namespace MonoDevelop.SourceEditor debugStackLineMarker = null; currentDebugLineMarker = null; - if (ownerDocument != null) { - ownerDocument.DocumentParsed -= HandleDocumentParsed; - ownerDocument = null; - } - RemoveMarkerQueue (); widget.Dispose (); if (wrapper != null) { @@ -2252,7 +2237,7 @@ namespace MonoDevelop.SourceEditor void CorrectIndenting () { - var doc = ownerDocument.Editor; + var doc = IdeApp.Workbench.ActiveDocument?.Editor; if (doc == null) return; var formatter = CodeFormatterService.GetFormatter (Document.MimeType); |