File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ CHAR_INFO NewCharInfo(char c)
30
30
ForegroundColor = Console . ForegroundColor
31
31
} ;
32
32
}
33
- public void Append ( char c )
34
- {
35
- buffer . Add ( NewCharInfo ( c ) ) ;
36
- }
37
33
38
34
public void Append ( string s )
39
35
{
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ public partial class PSConsoleReadLine : IPSConsoleReadLineMockableMethods
38
38
private ManualResetEvent _closingWaitHandle ;
39
39
private WaitHandle [ ] _threadProcWaitHandles ;
40
40
private WaitHandle [ ] _requestKeyWaitHandles ;
41
- private bool _captureKeys ;
42
- private readonly Queue < ConsoleKeyInfo > _savedKeys ;
43
41
private uint _prePSReadlineConsoleMode ;
44
42
45
43
private readonly StringBuilder _buffer ;
@@ -210,10 +208,6 @@ private static ConsoleKeyInfo ReadKey()
210
208
throw new OperationCanceledException ( ) ;
211
209
}
212
210
var key = _singleton . _queuedKeys . Dequeue ( ) ;
213
- if ( _singleton . _captureKeys )
214
- {
215
- _singleton . _savedKeys . Enqueue ( key ) ;
216
- }
217
211
return key ;
218
212
}
219
213
@@ -491,9 +485,6 @@ private PSConsoleReadLine()
491
485
{
492
486
_mockableMethods = this ;
493
487
494
- _captureKeys = false ;
495
- _savedKeys = new Queue < ConsoleKeyInfo > ( ) ;
496
-
497
488
SetDefaultWindowsBindings ( ) ;
498
489
499
490
_buffer = new StringBuilder ( 8 * 1024 ) ;
You can’t perform that action at this time.
0 commit comments