Skip to content

Commit

Permalink
remove commented out code in cpp-subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
theStack committed Apr 25, 2024
1 parent ff79adb commit 908c51f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/util/subprocess.h
Expand Up @@ -682,22 +682,6 @@ class Buffer
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;
Expand Down Expand Up @@ -974,15 +958,6 @@ class Popen
execute_process();
}

/*
~Popen()
{
#ifdef __USING_WINDOWS__
CloseHandle(this->process_handle_);
#endif
}
*/

int pid() const noexcept { return child_pid_; }

int retcode() const noexcept { return retcode_; }
Expand Down

0 comments on commit 908c51f

Please sign in to comment.