From 055dc97c26f1467676bd35a63072a5f2d745a60f Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 26 Oct 2019 00:03:05 +0300 Subject: [PATCH] Removed unused code --- Crypto Notepad/ExRichTextBox.cs | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Crypto Notepad/ExRichTextBox.cs b/Crypto Notepad/ExRichTextBox.cs index 9f4aed2..4f95ed4 100644 --- a/Crypto Notepad/ExRichTextBox.cs +++ b/Crypto Notepad/ExRichTextBox.cs @@ -32,6 +32,7 @@ protected override void WndProc(ref Message m) } return; } + base.WndProc(ref m); } @@ -43,23 +44,7 @@ protected override void OnHandleCreated(EventArgs e) AutoWordSelection = true; AutoWordSelection = false; } - } - - public event EventHandler CursorPositionChanged; - - protected virtual void OnCursorPositionChanged(EventArgs e) - { - if (CursorPositionChanged != null) - CursorPositionChanged(this, e); - } - - protected override void OnSelectionChanged(EventArgs e) - { - if (SelectionLength == 0) - OnCursorPositionChanged(e); - else - base.OnSelectionChanged(e); - } + } } public static class RichTextBoxPadding {