From 7f5e47874cd7257cae18eb0b89c71b85415bc982 Mon Sep 17 00:00:00 2001 From: Ketut Kumajaya Date: Thu, 11 Apr 2024 00:22:05 +0700 Subject: [PATCH] OPC DA: Remove unneeded previous changes --- src/com/opc/opcconnectionimpl.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/com/opc/opcconnectionimpl.cpp b/src/com/opc/opcconnectionimpl.cpp index 318b8fc50..9cb0d84db 100644 --- a/src/com/opc/opcconnectionimpl.cpp +++ b/src/com/opc/opcconnectionimpl.cpp @@ -166,11 +166,6 @@ bool COpcConnectionImpl::addGroup(const std::string& paGroupName, unsigned long } void COpcConnectionImpl::removeItems(const std::string& paGroupName){ - if(!mConnected){ - DEVLOG_INFO("COpcConnectionImpl::removeItems: disconnected\n"); - return; - } - if(paGroupName.empty()){ DEVLOG_INFO("COpcConnectionImpl::removeItems: group name is empty\n"); return; @@ -233,12 +228,6 @@ void COpcConnectionImpl::removeGroup(const std::string& paGroupName){ void COpcConnectionImpl::clearGroup(){ DEVLOG_INFO("clearGroup in COpcConnectionImpl\n"); - // BUG: delete items from server on kill not always working, clear the container here - std::vector items; - for(auto it = mOpcItems.begin(); it != mOpcItems.end(); ++it){ - items = it->second; - items.clear(); - } mOpcItems.clear(); removeGroup(std::string()); }