mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-25 16:31:29 +02:00
refactor, subprocess: Remove unused stream API calls
This commit is contained in:
parent
05b6f8793c
commit
5a11d3023f
@ -905,12 +905,6 @@ private:
|
|||||||
* send(...) - Send input to the input channel of the child.
|
* send(...) - Send input to the input channel of the child.
|
||||||
* communicate(...) - Get the output/error from the child and close the channels
|
* communicate(...) - Get the output/error from the child and close the channels
|
||||||
* from the parent side.
|
* from the parent side.
|
||||||
* input() - Get the input channel/File pointer. Can be used for
|
|
||||||
* customizing the way of sending input to child.
|
|
||||||
* output() - Get the output channel/File pointer. Usually used
|
|
||||||
in case of redirection. See piping examples.
|
|
||||||
* error() - Get the error channel/File pointer. Usually used
|
|
||||||
in case of redirection.
|
|
||||||
*/
|
*/
|
||||||
class Popen
|
class Popen
|
||||||
{
|
{
|
||||||
@ -995,15 +989,6 @@ public:
|
|||||||
return communicate(nullptr, 0);
|
return communicate(nullptr, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE* input() { return stream_.input(); }
|
|
||||||
FILE* output() { return stream_.output();}
|
|
||||||
FILE* error() { return stream_.error(); }
|
|
||||||
|
|
||||||
/// Stream close APIs
|
|
||||||
void close_input() { stream_.input_.reset(); }
|
|
||||||
void close_output() { stream_.output_.reset(); }
|
|
||||||
void close_error() { stream_.error_.reset(); }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template <typename F, typename... Args>
|
template <typename F, typename... Args>
|
||||||
void init_args(F&& farg, Args&&... args);
|
void init_args(F&& farg, Args&&... args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user