Skip to content

Commit 60dcfa6

Browse files
committed
Remove unreferenced/old code
1 parent f1e3ed3 commit 60dcfa6

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

PSReadLine/ConsoleBufferBuilder.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ CHAR_INFO NewCharInfo(char c)
3030
ForegroundColor = Console.ForegroundColor
3131
};
3232
}
33-
public void Append(char c)
34-
{
35-
buffer.Add(NewCharInfo(c));
36-
}
3733

3834
public void Append(string s)
3935
{

PSReadLine/ReadLine.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public partial class PSConsoleReadLine : IPSConsoleReadLineMockableMethods
3838
private ManualResetEvent _closingWaitHandle;
3939
private WaitHandle[] _threadProcWaitHandles;
4040
private WaitHandle[] _requestKeyWaitHandles;
41-
private bool _captureKeys;
42-
private readonly Queue<ConsoleKeyInfo> _savedKeys;
4341
private uint _prePSReadlineConsoleMode;
4442

4543
private readonly StringBuilder _buffer;
@@ -210,10 +208,6 @@ private static ConsoleKeyInfo ReadKey()
210208
throw new OperationCanceledException();
211209
}
212210
var key = _singleton._queuedKeys.Dequeue();
213-
if (_singleton._captureKeys)
214-
{
215-
_singleton._savedKeys.Enqueue(key);
216-
}
217211
return key;
218212
}
219213

@@ -491,9 +485,6 @@ private PSConsoleReadLine()
491485
{
492486
_mockableMethods = this;
493487

494-
_captureKeys = false;
495-
_savedKeys = new Queue<ConsoleKeyInfo>();
496-
497488
SetDefaultWindowsBindings();
498489

499490
_buffer = new StringBuilder(8 * 1024);

0 commit comments

Comments
 (0)