Skip to content

Commit 1a7d9b8

Browse files
authored
Remove m_monitoredItems (#2715)
1 parent d588ece commit 1a7d9b8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Libraries/Opc.Ua.Server/Diagnostics/CustomNodeManager.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ protected CustomNodeManager2(
102102
}
103103
}
104104

105-
// create the table of monitored items.
106-
// these are items created by clients when they subscribe to data or events.
107-
m_monitoredItems = new Dictionary<uint, IDataChangeMonitoredItem>();
108-
109105
// create the table of monitored nodes.
110106
// these are created by the node manager whenever a client subscribe to an attribute of the node.
111107
m_monitoredNodes = new Dictionary<NodeId, MonitoredNode2>();
@@ -237,14 +233,6 @@ protected List<NodeState> RootNotifiers
237233
get { return m_rootNotifiers; }
238234
}
239235

240-
/// <summary>
241-
/// Gets the table of monitored items.
242-
/// </summary>
243-
protected Dictionary<uint, IDataChangeMonitoredItem> MonitoredItems
244-
{
245-
get { return m_monitoredItems; }
246-
}
247-
248236
/// <summary>
249237
/// Gets the table of nodes being monitored.
250238
/// </summary>
@@ -3706,7 +3694,6 @@ protected virtual ServiceResult CreateMonitoredItem(
37063694
monitoredItem = datachangeItem;
37073695

37083696
// save the monitored item.
3709-
m_monitoredItems.Add(monitoredItemId, datachangeItem);
37103697
monitoredNode.Add(datachangeItem);
37113698

37123699
// report change.
@@ -4259,9 +4246,6 @@ protected virtual ServiceResult DeleteMonitoredItem(
42594246
}
42604247
}
42614248

4262-
// remove the monitored item.
4263-
m_monitoredItems.Remove(monitoredItem.Id);
4264-
42654249
// report change.
42664250
OnMonitoredItemDeleted(context, handle, datachangeItem);
42674251

@@ -4777,7 +4761,6 @@ protected NodeState AddNodeToComponentCache(ISystemContext context, NodeHandle h
47774761
private ServerSystemContext m_systemContext;
47784762
private string[] m_namespaceUris;
47794763
private ushort[] m_namespaceIndexes;
4780-
private Dictionary<uint, IDataChangeMonitoredItem> m_monitoredItems;
47814764
private Dictionary<NodeId, MonitoredNode2> m_monitoredNodes;
47824765
private Dictionary<NodeId, CacheEntry> m_componentCache;
47834766
private NodeIdDictionary<NodeState> m_predefinedNodes;

0 commit comments

Comments
 (0)