diff options
author | 2014-03-15 19:49:55 -0700 | |
---|---|---|
committer | 2014-03-15 19:49:55 -0700 | |
commit | 73c2846d64216b42064bc4a42f6e779831a8e9e6 (patch) | |
tree | 0d84560b3daa5518adfbf68e4b4446ad706b76a2 /io.cpp | |
parent | acd203840720897d015b7f5f4e8e71927e667da2 (diff) |
Remove support for input IO_BUFFERs, which were only used by fish_pager
Diffstat (limited to 'io.cpp')
-rw-r--r-- | io.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -123,14 +123,11 @@ void io_buffer_t::read() } -io_buffer_t *io_buffer_t::create(bool is_input, int fd) +io_buffer_t *io_buffer_t::create(int fd) { bool success = true; - if (fd == -1) - { - fd = is_input ? STDIN_FILENO : STDOUT_FILENO; - } - io_buffer_t *buffer_redirect = new io_buffer_t(fd, is_input); + assert(fd >= 0); + io_buffer_t *buffer_redirect = new io_buffer_t(fd); if (exec_pipe(buffer_redirect->pipe_fd) == -1) { |