Skip to content

Commit 5a11d30

Browse files
committed
refactor, subprocess: Remove unused stream API calls
1 parent 05b6f87 commit 5a11d30

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/util/subprocess.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -905,12 +905,6 @@ class Streams
905905
* send(...) - Send input to the input channel of the child.
906906
* communicate(...) - Get the output/error from the child and close the channels
907907
* from the parent side.
908-
* input() - Get the input channel/File pointer. Can be used for
909-
* customizing the way of sending input to child.
910-
* output() - Get the output channel/File pointer. Usually used
911-
in case of redirection. See piping examples.
912-
* error() - Get the error channel/File pointer. Usually used
913-
in case of redirection.
914908
*/
915909
class Popen
916910
{
@@ -995,15 +989,6 @@ class Popen
995989
return communicate(nullptr, 0);
996990
}
997991

998-
FILE* input() { return stream_.input(); }
999-
FILE* output() { return stream_.output();}
1000-
FILE* error() { return stream_.error(); }
1001-
1002-
/// Stream close APIs
1003-
void close_input() { stream_.input_.reset(); }
1004-
void close_output() { stream_.output_.reset(); }
1005-
void close_error() { stream_.error_.reset(); }
1006-
1007992
private:
1008993
template <typename F, typename... Args>
1009994
void init_args(F&& farg, Args&&... args);

0 commit comments

Comments
 (0)