diff --git a/src/PrettyPrompt/Cancellation/CancellationManager.cs b/src/PrettyPrompt/Cancellation/CancellationManager.cs index 7decc9f..e195823 100644 --- a/src/PrettyPrompt/Cancellation/CancellationManager.cs +++ b/src/PrettyPrompt/Cancellation/CancellationManager.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Threading; using PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Completion/CompletionItem.cs b/src/PrettyPrompt/Completion/CompletionItem.cs index b6afb1d..dd25adb 100644 --- a/src/PrettyPrompt/Completion/CompletionItem.cs +++ b/src/PrettyPrompt/Completion/CompletionItem.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Collections.Immutable; using System.Diagnostics; using System.Threading; diff --git a/src/PrettyPrompt/Completion/OverloadItem.cs b/src/PrettyPrompt/Completion/OverloadItem.cs index de20ab8..8822b8d 100644 --- a/src/PrettyPrompt/Completion/OverloadItem.cs +++ b/src/PrettyPrompt/Completion/OverloadItem.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; using PrettyPrompt.Highlighting; diff --git a/src/PrettyPrompt/Completion/SlidingArrayWindow.cs b/src/PrettyPrompt/Completion/SlidingArrayWindow.cs index 1d196a7..b2ceac3 100644 --- a/src/PrettyPrompt/Completion/SlidingArrayWindow.cs +++ b/src/PrettyPrompt/Completion/SlidingArrayWindow.cs @@ -4,9 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; -using System.Linq; using System.Threading; using System.Threading.Tasks; using PrettyPrompt.Documents; diff --git a/src/PrettyPrompt/Console/AnsiEscapeCodes.cs b/src/PrettyPrompt/Console/AnsiEscapeCodes.cs index e4299a0..25d42b2 100644 --- a/src/PrettyPrompt/Console/AnsiEscapeCodes.cs +++ b/src/PrettyPrompt/Console/AnsiEscapeCodes.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System.Text; using PrettyPrompt.Highlighting; namespace PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Console/ConsoleCoordinate.cs b/src/PrettyPrompt/Console/ConsoleCoordinate.cs index f330ab3..5802caf 100644 --- a/src/PrettyPrompt/Console/ConsoleCoordinate.cs +++ b/src/PrettyPrompt/Console/ConsoleCoordinate.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; namespace PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Console/IConsole.cs b/src/PrettyPrompt/Console/IConsole.cs index 00082e9..0fae33a 100644 --- a/src/PrettyPrompt/Console/IConsole.cs +++ b/src/PrettyPrompt/Console/IConsole.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Text; using PrettyPrompt.Highlighting; using TextCopy; diff --git a/src/PrettyPrompt/Console/KeyPress.cs b/src/PrettyPrompt/Console/KeyPress.cs index b217e1a..2a73d20 100644 --- a/src/PrettyPrompt/Console/KeyPress.cs +++ b/src/PrettyPrompt/Console/KeyPress.cs @@ -4,11 +4,8 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.Linq; namespace PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Console/KeyPressPattern.cs b/src/PrettyPrompt/Console/KeyPressPattern.cs index 9f9f66e..6d9e4b7 100644 --- a/src/PrettyPrompt/Console/KeyPressPattern.cs +++ b/src/PrettyPrompt/Console/KeyPressPattern.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Diagnostics; namespace PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Console/KeyPressPatterns.cs b/src/PrettyPrompt/Console/KeyPressPatterns.cs index 29ab6d9..4a2b8ec 100644 --- a/src/PrettyPrompt/Console/KeyPressPatterns.cs +++ b/src/PrettyPrompt/Console/KeyPressPatterns.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Collections.Immutable; namespace PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Console/SystemConsole.cs b/src/PrettyPrompt/Console/SystemConsole.cs index dee23cd..4e2e7af 100644 --- a/src/PrettyPrompt/Console/SystemConsole.cs +++ b/src/PrettyPrompt/Console/SystemConsole.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Runtime.InteropServices; namespace PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Documents/Document.cs b/src/PrettyPrompt/Documents/Document.cs index 4cab16e..5ee835f 100644 --- a/src/PrettyPrompt/Documents/Document.cs +++ b/src/PrettyPrompt/Documents/Document.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using PrettyPrompt.Panes; diff --git a/src/PrettyPrompt/Documents/Grapheme.cs b/src/PrettyPrompt/Documents/Grapheme.cs index 4492585..0ecebdd 100644 --- a/src/PrettyPrompt/Documents/Grapheme.cs +++ b/src/PrettyPrompt/Documents/Grapheme.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Globalization; namespace PrettyPrompt.Documents; diff --git a/src/PrettyPrompt/Documents/ReadOnlyStringBuilder.cs b/src/PrettyPrompt/Documents/ReadOnlyStringBuilder.cs index 1f9d18a..b7d9544 100644 --- a/src/PrettyPrompt/Documents/ReadOnlyStringBuilder.cs +++ b/src/PrettyPrompt/Documents/ReadOnlyStringBuilder.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System.Text; - namespace PrettyPrompt.Documents; /// diff --git a/src/PrettyPrompt/Documents/StringBuilderWithCaret.cs b/src/PrettyPrompt/Documents/StringBuilderWithCaret.cs index ca4d82a..fbd0f7c 100644 --- a/src/PrettyPrompt/Documents/StringBuilderWithCaret.cs +++ b/src/PrettyPrompt/Documents/StringBuilderWithCaret.cs @@ -4,9 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Diagnostics; -using System.Text; namespace PrettyPrompt.Documents; diff --git a/src/PrettyPrompt/Documents/TextSpan.cs b/src/PrettyPrompt/Documents/TextSpan.cs index 7e20191..19b24fb 100644 --- a/src/PrettyPrompt/Documents/TextSpan.cs +++ b/src/PrettyPrompt/Documents/TextSpan.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; - namespace PrettyPrompt.Documents; //Microsoft.CodeAnalysis.Text.TextSpan equivalent. diff --git a/src/PrettyPrompt/Documents/UndoRedoHistory.cs b/src/PrettyPrompt/Documents/UndoRedoHistory.cs index 00153dd..8110812 100644 --- a/src/PrettyPrompt/Documents/UndoRedoHistory.cs +++ b/src/PrettyPrompt/Documents/UndoRedoHistory.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System.Collections.Generic; using System.Diagnostics; using PrettyPrompt.TextSelection; diff --git a/src/PrettyPrompt/Documents/WordWrapping.cs b/src/PrettyPrompt/Documents/WordWrapping.cs index 12cfba6..ca8ba6d 100644 --- a/src/PrettyPrompt/Documents/WordWrapping.cs +++ b/src/PrettyPrompt/Documents/WordWrapping.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; using PrettyPrompt.Consoles; using PrettyPrompt.Highlighting; diff --git a/src/PrettyPrompt/Extensions.cs b/src/PrettyPrompt/Extensions.cs index 2222a86..31a61b5 100644 --- a/src/PrettyPrompt/Extensions.cs +++ b/src/PrettyPrompt/Extensions.cs @@ -4,9 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Diagnostics; -using System.Text; using PrettyPrompt.Documents; using PrettyPrompt.Highlighting; diff --git a/src/PrettyPrompt/Highlighting/AnsiColor.cs b/src/PrettyPrompt/Highlighting/AnsiColor.cs index 644dd94..b81b01c 100644 --- a/src/PrettyPrompt/Highlighting/AnsiColor.cs +++ b/src/PrettyPrompt/Highlighting/AnsiColor.cs @@ -4,13 +4,9 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; +using System.Collections.Frozen; using System.Globalization; -using System.Linq; -using System.Reflection; using PrettyPrompt.Consoles; -using static PrettyPrompt.Highlighting.FormattedString.TextElementsEnumerator; namespace PrettyPrompt.Highlighting; @@ -42,11 +38,26 @@ namespace PrettyPrompt.Highlighting; public static readonly AnsiColor BrightCyan = new("96", "106", nameof(BrightCyan)); public static readonly AnsiColor BrightWhite = new("97", "107", nameof(BrightWhite)); - private static readonly Dictionary ansiColorNames = - typeof(AnsiColor) - .GetFields(BindingFlags.Static | BindingFlags.Public) - .Where(f => f.FieldType == typeof(AnsiColor)) - .ToDictionary(f => f.Name, f => (AnsiColor)f.GetValue(null)!, StringComparer.OrdinalIgnoreCase); + private static readonly FrozenDictionary ansiColorNames = + new Dictionary(StringComparer.OrdinalIgnoreCase) + { + [nameof(Black)] = Black, + [nameof(Red)] = Red, + [nameof(Green)] = Green, + [nameof(Yellow)] = Yellow, + [nameof(Blue)] = Blue, + [nameof(Magenta)] = Magenta, + [nameof(Cyan)] = Cyan, + [nameof(White)] = White, + [nameof(BrightBlack)] = BrightBlack, + [nameof(BrightRed)] = BrightRed, + [nameof(BrightGreen)] = BrightGreen, + [nameof(BrightYellow)] = BrightYellow, + [nameof(BrightBlue)] = BrightBlue, + [nameof(BrightMagenta)] = BrightMagenta, + [nameof(BrightCyan)] = BrightCyan, + [nameof(BrightWhite)] = BrightWhite, + }.ToFrozenDictionary(StringComparer.OrdinalIgnoreCase); public static AnsiColor Rgb(byte r, byte g, byte b) => new($"38;2;{r};{g};{b}", $"48;2;{r};{g};{b}", $"#{r:X2}{g:X2}{b:X2}"); @@ -79,7 +90,7 @@ public static bool TryParse(string input, out AnsiColor result) } var span = input.AsSpan(); - if (input.StartsWith('#') && span.Length == 7 && + if (span.Length == 7 && span[0] == '#' && byte.TryParse(span.Slice(1, 2), NumberStyles.AllowHexSpecifier, null, out byte r) && byte.TryParse(span.Slice(3, 2), NumberStyles.AllowHexSpecifier, null, out byte g) && byte.TryParse(span.Slice(5, 2), NumberStyles.AllowHexSpecifier, null, out byte b)) diff --git a/src/PrettyPrompt/Highlighting/CellRenderer.cs b/src/PrettyPrompt/Highlighting/CellRenderer.cs index f2af35f..2c8e8f6 100644 --- a/src/PrettyPrompt/Highlighting/CellRenderer.cs +++ b/src/PrettyPrompt/Highlighting/CellRenderer.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Text; using PrettyPrompt.Consoles; using PrettyPrompt.Documents; using PrettyPrompt.TextSelection; diff --git a/src/PrettyPrompt/Highlighting/FormatSpan.cs b/src/PrettyPrompt/Highlighting/FormatSpan.cs index bf794d1..04b86f4 100644 --- a/src/PrettyPrompt/Highlighting/FormatSpan.cs +++ b/src/PrettyPrompt/Highlighting/FormatSpan.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using PrettyPrompt.Documents; namespace PrettyPrompt.Highlighting; diff --git a/src/PrettyPrompt/Highlighting/FormattedString.cs b/src/PrettyPrompt/Highlighting/FormattedString.cs index dbe52db..e6716bd 100644 --- a/src/PrettyPrompt/Highlighting/FormattedString.cs +++ b/src/PrettyPrompt/Highlighting/FormattedString.cs @@ -4,13 +4,10 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Buffers; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; using System.Runtime.CompilerServices; using PrettyPrompt.Rendering; diff --git a/src/PrettyPrompt/Highlighting/FormattedStringBuilder.cs b/src/PrettyPrompt/Highlighting/FormattedStringBuilder.cs index c140bf6..5e50b3d 100644 --- a/src/PrettyPrompt/Highlighting/FormattedStringBuilder.cs +++ b/src/PrettyPrompt/Highlighting/FormattedStringBuilder.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Text; using PrettyPrompt.Documents; namespace PrettyPrompt.Highlighting; diff --git a/src/PrettyPrompt/Highlighting/SyntaxHighlighter.cs b/src/PrettyPrompt/Highlighting/SyntaxHighlighter.cs index 31b4d0e..50e4700 100644 --- a/src/PrettyPrompt/Highlighting/SyntaxHighlighter.cs +++ b/src/PrettyPrompt/Highlighting/SyntaxHighlighter.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; diff --git a/src/PrettyPrompt/History/HistoryLog.cs b/src/PrettyPrompt/History/HistoryLog.cs index a8a9831..3421c74 100644 --- a/src/PrettyPrompt/History/HistoryLog.cs +++ b/src/PrettyPrompt/History/HistoryLog.cs @@ -4,13 +4,9 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.IO; -using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; using PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/Panes/CompletionPane.cs b/src/PrettyPrompt/Panes/CompletionPane.cs index fcbb24d..b61816a 100644 --- a/src/PrettyPrompt/Panes/CompletionPane.cs +++ b/src/PrettyPrompt/Panes/CompletionPane.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Threading; using System.Threading.Tasks; using PrettyPrompt.Completion; diff --git a/src/PrettyPrompt/Panes/OverloadPane.cs b/src/PrettyPrompt/Panes/OverloadPane.cs index e9497e7..ae924a5 100644 --- a/src/PrettyPrompt/Panes/OverloadPane.cs +++ b/src/PrettyPrompt/Panes/OverloadPane.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Threading; using System.Threading.Tasks; using PrettyPrompt.Completion; diff --git a/src/PrettyPrompt/Pools.cs b/src/PrettyPrompt/Pools.cs index cc27e71..c64e34e 100644 --- a/src/PrettyPrompt/Pools.cs +++ b/src/PrettyPrompt/Pools.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Text; using System.Threading; namespace PrettyPrompt; diff --git a/src/PrettyPrompt/Prompt.cs b/src/PrettyPrompt/Prompt.cs index e9e16ad..e027333 100644 --- a/src/PrettyPrompt/Prompt.cs +++ b/src/PrettyPrompt/Prompt.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; diff --git a/src/PrettyPrompt/PromptCallbacks.cs b/src/PrettyPrompt/PromptCallbacks.cs index b91aed3..c29ff90 100644 --- a/src/PrettyPrompt/PromptCallbacks.cs +++ b/src/PrettyPrompt/PromptCallbacks.cs @@ -4,11 +4,8 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Threading; using System.Threading.Tasks; using PrettyPrompt.Completion; diff --git a/src/PrettyPrompt/PromptConfiguration.cs b/src/PrettyPrompt/PromptConfiguration.cs index e93c34c..55d26a1 100644 --- a/src/PrettyPrompt/PromptConfiguration.cs +++ b/src/PrettyPrompt/PromptConfiguration.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using PrettyPrompt.Highlighting; namespace PrettyPrompt; diff --git a/src/PrettyPrompt/Rendering/BoxDrawing.cs b/src/PrettyPrompt/Rendering/BoxDrawing.cs index a1e7b26..ef2fb6c 100644 --- a/src/PrettyPrompt/Rendering/BoxDrawing.cs +++ b/src/PrettyPrompt/Rendering/BoxDrawing.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using PrettyPrompt.Highlighting; namespace PrettyPrompt.Rendering; diff --git a/src/PrettyPrompt/Rendering/Cell.cs b/src/PrettyPrompt/Rendering/Cell.cs index db86cb6..efc57dd 100644 --- a/src/PrettyPrompt/Rendering/Cell.cs +++ b/src/PrettyPrompt/Rendering/Cell.cs @@ -4,9 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using PrettyPrompt.Highlighting; namespace PrettyPrompt; diff --git a/src/PrettyPrompt/Rendering/IncrementalRendering.cs b/src/PrettyPrompt/Rendering/IncrementalRendering.cs index 5861c91..aee4a57 100644 --- a/src/PrettyPrompt/Rendering/IncrementalRendering.cs +++ b/src/PrettyPrompt/Rendering/IncrementalRendering.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Text; using PrettyPrompt.Consoles; using PrettyPrompt.Highlighting; using static PrettyPrompt.Consoles.AnsiEscapeCodes; diff --git a/src/PrettyPrompt/Rendering/Renderer.cs b/src/PrettyPrompt/Rendering/Renderer.cs index b802e5b..999472f 100644 --- a/src/PrettyPrompt/Rendering/Renderer.cs +++ b/src/PrettyPrompt/Rendering/Renderer.cs @@ -4,9 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; -using System.Linq; using PrettyPrompt.Consoles; using PrettyPrompt.Highlighting; using PrettyPrompt.Panes; diff --git a/src/PrettyPrompt/Rendering/Row.cs b/src/PrettyPrompt/Rendering/Row.cs index 1b0663f..fd47763 100644 --- a/src/PrettyPrompt/Rendering/Row.cs +++ b/src/PrettyPrompt/Rendering/Row.cs @@ -4,10 +4,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using PrettyPrompt.Highlighting; namespace PrettyPrompt; diff --git a/src/PrettyPrompt/Rendering/Screen.cs b/src/PrettyPrompt/Rendering/Screen.cs index b5c4610..601525d 100644 --- a/src/PrettyPrompt/Rendering/Screen.cs +++ b/src/PrettyPrompt/Rendering/Screen.cs @@ -4,8 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; -using System.Linq; using PrettyPrompt.Consoles; namespace PrettyPrompt.Rendering; diff --git a/src/PrettyPrompt/Rendering/ScreenArea.cs b/src/PrettyPrompt/Rendering/ScreenArea.cs index 2ac0c48..c382f2e 100644 --- a/src/PrettyPrompt/Rendering/ScreenArea.cs +++ b/src/PrettyPrompt/Rendering/ScreenArea.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using PrettyPrompt.Consoles; namespace PrettyPrompt; diff --git a/src/PrettyPrompt/Rendering/UnicodeWidth.cs b/src/PrettyPrompt/Rendering/UnicodeWidth.cs index d122e62..f83ff57 100644 --- a/src/PrettyPrompt/Rendering/UnicodeWidth.cs +++ b/src/PrettyPrompt/Rendering/UnicodeWidth.cs @@ -4,10 +4,8 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Buffers; using System.Globalization; -using System.Text; using Wcwidth; namespace PrettyPrompt.Rendering; diff --git a/src/PrettyPrompt/StringCache.cs b/src/PrettyPrompt/StringCache.cs index 42c9089..2c39146 100644 --- a/src/PrettyPrompt/StringCache.cs +++ b/src/PrettyPrompt/StringCache.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Diagnostics; using PrettyPrompt.Rendering; diff --git a/src/PrettyPrompt/TextSelection/SelectionKeyPressHandler.cs b/src/PrettyPrompt/TextSelection/SelectionKeyPressHandler.cs index 4b1d3fb..5166c3a 100644 --- a/src/PrettyPrompt/TextSelection/SelectionKeyPressHandler.cs +++ b/src/PrettyPrompt/TextSelection/SelectionKeyPressHandler.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System; using System.Threading; using System.Threading.Tasks; using PrettyPrompt.Consoles; diff --git a/src/PrettyPrompt/TextSelection/SelectionSpan.cs b/src/PrettyPrompt/TextSelection/SelectionSpan.cs index 40357d8..eac82f0 100644 --- a/src/PrettyPrompt/TextSelection/SelectionSpan.cs +++ b/src/PrettyPrompt/TextSelection/SelectionSpan.cs @@ -4,7 +4,6 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. #endregion -using System.Collections.Generic; using System.Diagnostics; using PrettyPrompt.Consoles; using PrettyPrompt.Documents; diff --git a/src/PrettyPrompt/TextSelection/WrappedClipboard.cs b/src/PrettyPrompt/TextSelection/WrappedClipboard.cs index 3397cf4..3f8dbfa 100644 --- a/src/PrettyPrompt/TextSelection/WrappedClipboard.cs +++ b/src/PrettyPrompt/TextSelection/WrappedClipboard.cs @@ -1,5 +1,4 @@ -using System; -using System.Threading; +using System.Threading; using System.Threading.Tasks; using TextCopy; diff --git a/tests/PrettyPrompt.Benchmarks/SteadyStateRenderBenchmark.cs b/tests/PrettyPrompt.Benchmarks/SteadyStateRenderBenchmark.cs index 5f8aa3a..1b1325c 100644 --- a/tests/PrettyPrompt.Benchmarks/SteadyStateRenderBenchmark.cs +++ b/tests/PrettyPrompt.Benchmarks/SteadyStateRenderBenchmark.cs @@ -14,9 +14,7 @@ using PrettyPrompt.Consoles; using PrettyPrompt.Highlighting; using PrettyPrompt.Panes; -using PrettyPrompt.Rendering; using PrettyPrompt.TextSelection; -using TextCopy; /// /// Honest steady-state per-keystroke cost in a large document. Unlike diff --git a/tests/PrettyPrompt.Tests/ClipboardTests.cs b/tests/PrettyPrompt.Tests/ClipboardTests.cs index 23dc832..41a80ec 100644 --- a/tests/PrettyPrompt.Tests/ClipboardTests.cs +++ b/tests/PrettyPrompt.Tests/ClipboardTests.cs @@ -1,8 +1,5 @@ using PrettyPrompt.TextSelection; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading; using System.Threading.Tasks; using Xunit;