diff options
author | David Hewitt <1939362+davidhewitt@users.noreply.github.com> | 2019-12-22 11:02:56 +0000 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-12-22 11:02:56 +0000 |
commit | 85112fefa56cfc125df46b171f154ad44e4e6c3a (patch) | |
tree | affeb518d65fd9e01f3f70092fddda30d87a2563 /alacritty_terminal | |
parent | 7a957978e41b4737530bf83bed82b7c177004b30 (diff) |
Remove unneeded NamedPipe::connect() calls
In the way the code was set up, these calls would always do nothing
and return io::ErrorKind::WouldBlock, so they can be safely removed.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/tty/windows/winpty.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/alacritty_terminal/src/tty/windows/winpty.rs b/alacritty_terminal/src/tty/windows/winpty.rs index 56ee34a1..4ab4d059 100644 --- a/alacritty_terminal/src/tty/windows/winpty.rs +++ b/alacritty_terminal/src/tty/windows/winpty.rs @@ -81,20 +81,6 @@ pub fn new<C>(config: &Config<C>, size: &SizeInfo, _window_id: Option<usize>) -> ); }; - if let Some(err) = conout_pipe.connect().err() { - if err.kind() != io::ErrorKind::WouldBlock { - panic!(err); - } - } - assert!(conout_pipe.take_error().unwrap().is_none()); - - if let Some(err) = conin_pipe.connect().err() { - if err.kind() != io::ErrorKind::WouldBlock { - panic!(err); - } - } - assert!(conin_pipe.take_error().unwrap().is_none()); - agent.spawn(&spawnconfig).unwrap(); let child_watcher = ChildExitWatcher::new(agent.raw_handle()).unwrap(); |