Skip to content

Commit 6f210c1

Browse files
committed
Small code cleanup.
1 parent fdbdf81 commit 6f210c1

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

I4AASNodeManager.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -367,32 +367,6 @@ public FolderState CreateFolder(NodeState? parent, string browseDisplayName)
367367
return folder;
368368
}
369369

370-
public BaseObjectState CreateObject(NodeState? parent, string idShort, string nodeId)
371-
{
372-
if (string.IsNullOrEmpty(idShort) || string.IsNullOrEmpty(nodeId))
373-
{
374-
throw new ArgumentNullException("Cannot create UA object with empty browsename or type definition!");
375-
}
376-
377-
BaseObjectState obj = new(parent)
378-
{
379-
BrowseName = idShort,
380-
DisplayName = idShort,
381-
TypeDefinitionId = nodeId
382-
};
383-
384-
obj.NodeId = New(SystemContext, obj);
385-
386-
AddPredefinedNode(SystemContext, obj);
387-
388-
if (parent != null)
389-
{
390-
parent.AddChild(obj);
391-
}
392-
393-
return obj;
394-
}
395-
396370
public BaseDataVariableState CreateStringVariable(NodeState? parent, string browseDisplayName, string value)
397371
{
398372
if (string.IsNullOrEmpty(browseDisplayName))

0 commit comments

Comments
 (0)