aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-04-25 17:44:39 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2024-04-25 17:44:39 +0200
commit908c51fe4afeba0af500c6275027b1afa1b3bd19 (patch)
tree13be98bb50e01ade75a5fb35fadf8ba21ad1e479
parentff79adbe056220202f7a56d67f788c38fc49ef9f (diff)
downloadbitcoin-908c51fe4afeba0af500c6275027b1afa1b3bd19.tar.xz
remove commented out code in cpp-subprocess
-rw-r--r--src/util/subprocess.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/util/subprocess.h b/src/util/subprocess.h
index 4c31a23d41..dfe6e63c1a 100644
--- a/src/util/subprocess.h
+++ b/src/util/subprocess.h
@@ -682,22 +682,6 @@ public:
explicit Buffer(size_t cap) { buf.resize(cap); }
void add_cap(size_t cap) { buf.resize(cap); }
-#if 0
- Buffer(const Buffer& other):
- buf(other.buf),
- length(other.length)
- {
- std::cout << "COPY" << std::endl;
- }
-
- Buffer(Buffer&& other):
- buf(std::move(other.buf)),
- length(other.length)
- {
- std::cout << "MOVE" << std::endl;
- }
-#endif
-
public:
std::vector<char> buf;
size_t length = 0;
@@ -974,15 +958,6 @@ public:
execute_process();
}
-/*
- ~Popen()
- {
-#ifdef __USING_WINDOWS__
- CloseHandle(this->process_handle_);
-#endif
- }
-*/
-
int pid() const noexcept { return child_pid_; }
int retcode() const noexcept { return retcode_; }