diff --git a/src/menu/ImportIEDs.ts b/src/menu/ImportIEDs.ts index fce11f47bb..5d89dff6e9 100644 --- a/src/menu/ImportIEDs.ts +++ b/src/menu/ImportIEDs.ts @@ -5,7 +5,6 @@ import { get } from 'lit-translate'; import { createElement, EditorAction, - getReference, identity, newActionEvent, newLogEvent, @@ -93,7 +92,6 @@ function addCommunicationElements( new: { parent: doc.querySelector(':root')!, element: communication, - reference: getReference(doc.querySelector(':root')!, 'Communication'), }, }); @@ -125,7 +123,6 @@ function addCommunicationElements( new: { parent: communication, element: subNetwork, - reference: getReference(communication, 'SubNetwork'), }, }); createdSubNetworks.push(subNetwork); @@ -135,7 +132,6 @@ function addCommunicationElements( new: { parent: subNetwork, element, - reference: getReference(subNetwork, 'ConnectedAP'), }, }); }); @@ -206,10 +202,6 @@ function addEnumType( new: { parent: doc.querySelector(':root > DataTypeTemplates')!, element: enumType, - reference: getReference( - doc.querySelector(':root > DataTypeTemplates')!, - 'EnumType' - ), }, }; } @@ -245,10 +237,6 @@ function addDAType( new: { parent: doc.querySelector(':root > DataTypeTemplates')!, element: daType, - reference: getReference( - doc.querySelector(':root > DataTypeTemplates')!, - 'DAType' - ), }, }; } @@ -284,10 +272,6 @@ function addDOType( new: { parent: doc.querySelector(':root > DataTypeTemplates')!, element: doType, - reference: getReference( - doc.querySelector(':root > DataTypeTemplates')!, - 'DOType' - ), }, }; } @@ -324,10 +308,6 @@ function addLNodeType( new: { parent: doc.querySelector(':root > DataTypeTemplates')!, element: lNodeType, - reference: getReference( - doc.querySelector('DataTypeTemplates')!, - 'LNodeType' - ), }, }; } @@ -398,7 +378,6 @@ export async function importIED( new: { parent: doc!.querySelector(':root')!, element: ied, - reference: getReference(doc!.querySelector(':root')!, 'IED'), }, }); @@ -484,7 +463,6 @@ export default class ImportingIedPlugin extends LitElement { new: { parent: doc.documentElement, element, - reference: getReference(doc.documentElement, 'DataTypeTemplates'), }, }) );