Skip to content

Commit 908c51f

Browse files
committed
remove commented out code in cpp-subprocess
1 parent ff79adb commit 908c51f

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/util/subprocess.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -682,22 +682,6 @@ class Buffer
682682
explicit Buffer(size_t cap) { buf.resize(cap); }
683683
void add_cap(size_t cap) { buf.resize(cap); }
684684

685-
#if 0
686-
Buffer(const Buffer& other):
687-
buf(other.buf),
688-
length(other.length)
689-
{
690-
std::cout << "COPY" << std::endl;
691-
}
692-
693-
Buffer(Buffer&& other):
694-
buf(std::move(other.buf)),
695-
length(other.length)
696-
{
697-
std::cout << "MOVE" << std::endl;
698-
}
699-
#endif
700-
701685
public:
702686
std::vector<char> buf;
703687
size_t length = 0;
@@ -974,15 +958,6 @@ class Popen
974958
execute_process();
975959
}
976960

977-
/*
978-
~Popen()
979-
{
980-
#ifdef __USING_WINDOWS__
981-
CloseHandle(this->process_handle_);
982-
#endif
983-
}
984-
*/
985-
986961
int pid() const noexcept { return child_pid_; }
987962

988963
int retcode() const noexcept { return retcode_; }

0 commit comments

Comments
 (0)