aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-05-10 14:58:27 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-05-10 14:58:27 +0100
commit5a11d3023f7d0cde777f3496c0f3aa381823d749 (patch)
treeece175f3920a0250fdebc00e385a7622fda48e29 /src
parent05b6f8793c6d5f17d1cb413e2884f1fb0f367ad8 (diff)
downloadbitcoin-5a11d3023f7d0cde777f3496c0f3aa381823d749.tar.xz
refactor, subprocess: Remove unused stream API calls
Diffstat (limited to 'src')
-rw-r--r--src/util/subprocess.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util/subprocess.h b/src/util/subprocess.h
index ad49bac54b..e76ced687c 100644
--- a/src/util/subprocess.h
+++ b/src/util/subprocess.h
@@ -905,12 +905,6 @@ private:
* send(...) - Send input to the input channel of the child.
* communicate(...) - Get the output/error from the child and close the channels
* 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
{
@@ -995,15 +989,6 @@ public:
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:
template <typename F, typename... Args>
void init_args(F&& farg, Args&&... args);