From d5499ae724d12e5903fed91283c37a0db7096d29 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 4 Oct 2019 23:02:12 +0300 Subject: [PATCH] Removed unused code --- Crypto Notepad/ExRichTextBox.cs | 9 --------- Crypto Notepad/MainForm.cs | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Crypto Notepad/ExRichTextBox.cs b/Crypto Notepad/ExRichTextBox.cs index 959ad1b..9f4aed2 100644 --- a/Crypto Notepad/ExRichTextBox.cs +++ b/Crypto Notepad/ExRichTextBox.cs @@ -60,15 +60,6 @@ protected override void OnSelectionChanged(EventArgs e) else base.OnSelectionChanged(e); } - - protected override void OnKeyDown(KeyEventArgs e) - { - if (GetLineFromCharIndex(SelectionStart) == 0 && e.KeyData == Keys.Up || - GetLineFromCharIndex(SelectionStart) == GetLineFromCharIndex(TextLength) && e.KeyData == Keys.Down || - SelectionStart == TextLength && e.KeyData == Keys.Right || - SelectionStart == 0 && e.KeyData == Keys.Left - ) e.Handled = true; - } } public static class RichTextBoxPadding { diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index c815d84..995d332 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -1347,8 +1347,6 @@ private void DocsMainMenu_Click(object sender, EventArgs e) private void UpdatesMainMenu_Click(object sender, EventArgs e) { - //Thread up = new Thread(() => CheckForUpdates(true)); - //up.Start(); CheckForUpdates(true); } @@ -1650,6 +1648,7 @@ private void VariablesMainMenu_Click(object sender, EventArgs e) Debug.WriteLine("EditorMenuStrip: " + contextMenu.Enabled); #endif } + #endregion