summaryrefslogtreecommitdiff
path: root/src/processrunner.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 05:33:53 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:45:00 -0500
commit7db5f938841933fb4846441448dafefc414ed5e7 (patch)
tree86dc2345f3b85f67f76262a041f59996fd1b7407 /src/processrunner.cpp
parent7ebd4debeef2cfdf268679e7b680021d3dc20687 (diff)
removed unused SpawnedProcess
lock widget now interprets closing the dialog as a forced unlock
Diffstat (limited to 'src/processrunner.cpp')
-rw-r--r--src/processrunner.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/processrunner.cpp b/src/processrunner.cpp
index 9cc2ce52..58b2a771 100644
--- a/src/processrunner.cpp
+++ b/src/processrunner.cpp
@@ -320,53 +320,6 @@ ProcessRunner::Results waitForProcess(
}
-
-SpawnedProcess::SpawnedProcess(HANDLE handle, spawn::SpawnParameters sp)
- : m_handle(handle), m_parameters(std::move(sp))
-{
-}
-
-SpawnedProcess::SpawnedProcess(SpawnedProcess&& other)
- : m_handle(other.m_handle), m_parameters(std::move(other.m_parameters))
-{
- other.m_handle = INVALID_HANDLE_VALUE;
-}
-
-SpawnedProcess& SpawnedProcess::operator=(SpawnedProcess&& other)
-{
- if (this != &other) {
- destroy();
-
- m_handle = other.m_handle;
- other.m_handle = INVALID_HANDLE_VALUE;
-
- m_parameters = std::move(other.m_parameters);
- }
-
- return *this;
-}
-
-SpawnedProcess::~SpawnedProcess()
-{
- destroy();
-}
-
-HANDLE SpawnedProcess::releaseHandle()
-{
- const auto h = m_handle;
- m_handle = INVALID_HANDLE_VALUE;
- return h;
-}
-
-void SpawnedProcess::destroy()
-{
- if (m_handle != INVALID_HANDLE_VALUE) {
- ::CloseHandle(m_handle);
- m_handle = INVALID_HANDLE_VALUE;
- }
-}
-
-
ProcessRunner::ProcessRunner(OrganizerCore& core, IUserInterface* ui) :
m_core(core), m_ui(ui), m_lockReason(LockWidget::NoReason),
m_waitFlags(NoFlags), m_handle(INVALID_HANDLE_VALUE), m_exitCode(-1)