summaryrefslogtreecommitdiffstats
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorDavid Hewitt <1939362+davidhewitt@users.noreply.github.com>2019-12-22 11:02:56 +0000
committerChristian Duerr <contact@christianduerr.com>2019-12-22 11:02:56 +0000
commit85112fefa56cfc125df46b171f154ad44e4e6c3a (patch)
treeaffeb518d65fd9e01f3f70092fddda30d87a2563 /alacritty_terminal
parent7a957978e41b4737530bf83bed82b7c177004b30 (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.rs14
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();