From 885fd987d6bda464709f8d225dceb0f2cb9f98bd Mon Sep 17 00:00:00 2001 From: "Mark A. Tsuchida" Date: Fri, 5 Jul 2024 13:41:27 -0500 Subject: [PATCH] Revert pull request #476 The check for an initialized hub was already in HubInstance. --- MMCore/MMCore.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MMCore/MMCore.cpp b/MMCore/MMCore.cpp index 92e810d3c..4bef95471 100644 --- a/MMCore/MMCore.cpp +++ b/MMCore/MMCore.cpp @@ -7526,19 +7526,11 @@ MM::DeviceDetectionStatus CMMCore::detectDevice(const char* label) * device. Doing otherwise results in undefined behavior. This function was * intended for use during initial configuration, not routine loading of * devices. These restrictions may be relaxed in the future if possible. - * - * Throws an exception if the hub device is not initialized. * * @param hubDeviceLabel the label for the device of type Hub */ std::vector CMMCore::getInstalledDevices(const char* hubDeviceLabel) throw (CMMError) { - if (isFeatureEnabled("StrictInitializationChecks")) { - if (getDeviceInitializationState(hubDeviceLabel) == DeviceInitializationState::Uninitialized) { - throw CMMError("Device " + ToQuotedString(hubDeviceLabel) + " is not yet initialized."); - } - } - std::shared_ptr pHub = deviceManager_->GetDeviceOfType(hubDeviceLabel);