From 3768ad76e55b4c0184cc2fb54aa02e744cb3097e Mon Sep 17 00:00:00 2001 From: Lars Kool Date: Mon, 1 Jul 2024 11:45:33 +0200 Subject: [PATCH] Fixed code duplication --- MMCore/MMCore.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/MMCore/MMCore.cpp b/MMCore/MMCore.cpp index 623f53546..cc7ad3056 100644 --- a/MMCore/MMCore.cpp +++ b/MMCore/MMCore.cpp @@ -6359,24 +6359,6 @@ bool CMMCore::PressurePumpRequiresCalibration(const char* deviceLabel) throw (CM return pPump->requiresCalibration(); } -/** -* Sets the pressure of the pump in kPa -*/ -void CMMCore::setPumpPressure(const char* deviceLabel, double pressurekPa) throw (CMMError) -{ - std::shared_ptr pPump = - deviceManager_->GetDeviceOfType(deviceLabel); - mm::DeviceModuleLockGuard guard(pPump); - - int ret = pPump->setPressure(pressurekPa); - - if (ret != DEVICE_OK) - { - logError(deviceLabel, getDeviceErrorText(ret, pPump).c_str()); - throw CMMError(getDeviceErrorText(ret, pPump)); - } -} - /** * Gets the pressure of the pump in kPa */