Skip to content

Commit

Permalink
OPC DA: Remove unneeded previous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kumajaya authored and azoitl committed Apr 17, 2024
1 parent a8549a5 commit 7f5e478
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/com/opc/opcconnectionimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<COPCItem *> items;
for(auto it = mOpcItems.begin(); it != mOpcItems.end(); ++it){
items = it->second;
items.clear();
}
mOpcItems.clear();
removeGroup(std::string());
}
Expand Down

0 comments on commit 7f5e478

Please sign in to comment.