From 908c51fe4afeba0af500c6275027b1afa1b3bd19 Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Thu, 25 Apr 2024 17:44:39 +0200 Subject: [PATCH] remove commented out code in cpp-subprocess --- src/util/subprocess.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/util/subprocess.h b/src/util/subprocess.h index 4c31a23d4177f..dfe6e63c1a284 100644 --- a/src/util/subprocess.h +++ b/src/util/subprocess.h @@ -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 buf; size_t length = 0; @@ -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_; }