mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-30 09:40:16 +02:00
remove commented out code in cpp-subprocess
This commit is contained in:
parent
ff79adbe05
commit
908c51fe4a
@ -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_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user