Skip to content

Commit

Permalink
Remove m_monitoredItems (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscantero authored Aug 16, 2024
1 parent d588ece commit 1a7d9b8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Libraries/Opc.Ua.Server/Diagnostics/CustomNodeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ protected CustomNodeManager2(
}
}

// create the table of monitored items.
// these are items created by clients when they subscribe to data or events.
m_monitoredItems = new Dictionary<uint, IDataChangeMonitoredItem>();

// create the table of monitored nodes.
// these are created by the node manager whenever a client subscribe to an attribute of the node.
m_monitoredNodes = new Dictionary<NodeId, MonitoredNode2>();
Expand Down Expand Up @@ -237,14 +233,6 @@ protected List<NodeState> RootNotifiers
get { return m_rootNotifiers; }
}

/// <summary>
/// Gets the table of monitored items.
/// </summary>
protected Dictionary<uint, IDataChangeMonitoredItem> MonitoredItems
{
get { return m_monitoredItems; }
}

/// <summary>
/// Gets the table of nodes being monitored.
/// </summary>
Expand Down Expand Up @@ -3706,7 +3694,6 @@ protected virtual ServiceResult CreateMonitoredItem(
monitoredItem = datachangeItem;

// save the monitored item.
m_monitoredItems.Add(monitoredItemId, datachangeItem);
monitoredNode.Add(datachangeItem);

// report change.
Expand Down Expand Up @@ -4259,9 +4246,6 @@ protected virtual ServiceResult DeleteMonitoredItem(
}
}

// remove the monitored item.
m_monitoredItems.Remove(monitoredItem.Id);

// report change.
OnMonitoredItemDeleted(context, handle, datachangeItem);

Expand Down Expand Up @@ -4777,7 +4761,6 @@ protected NodeState AddNodeToComponentCache(ISystemContext context, NodeHandle h
private ServerSystemContext m_systemContext;
private string[] m_namespaceUris;
private ushort[] m_namespaceIndexes;
private Dictionary<uint, IDataChangeMonitoredItem> m_monitoredItems;
private Dictionary<NodeId, MonitoredNode2> m_monitoredNodes;
private Dictionary<NodeId, CacheEntry> m_componentCache;
private NodeIdDictionary<NodeState> m_predefinedNodes;
Expand Down

0 comments on commit 1a7d9b8

Please sign in to comment.