Skip to content

Commit

Permalink
refactor(iedimport): remove reference from create action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Vogelsang committed Nov 4, 2021
1 parent 099ce62 commit 8deb3e0
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/menu/ImportIEDs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { get } from 'lit-translate';
import {
createElement,
EditorAction,
getReference,
identity,
newActionEvent,
newLogEvent,
Expand Down Expand Up @@ -93,7 +92,6 @@ function addCommunicationElements(
new: {
parent: doc.querySelector(':root')!,
element: communication,
reference: getReference(doc.querySelector(':root')!, 'Communication'),
},
});

Expand Down Expand Up @@ -125,7 +123,6 @@ function addCommunicationElements(
new: {
parent: communication,
element: subNetwork,
reference: getReference(communication, 'SubNetwork'),
},
});
createdSubNetworks.push(subNetwork);
Expand All @@ -135,7 +132,6 @@ function addCommunicationElements(
new: {
parent: subNetwork,
element,
reference: getReference(subNetwork, 'ConnectedAP'),
},
});
});
Expand Down Expand Up @@ -206,10 +202,6 @@ function addEnumType(
new: {
parent: doc.querySelector(':root > DataTypeTemplates')!,
element: enumType,
reference: getReference(
doc.querySelector(':root > DataTypeTemplates')!,
'EnumType'
),
},
};
}
Expand Down Expand Up @@ -245,10 +237,6 @@ function addDAType(
new: {
parent: doc.querySelector(':root > DataTypeTemplates')!,
element: daType,
reference: getReference(
doc.querySelector(':root > DataTypeTemplates')!,
'DAType'
),
},
};
}
Expand Down Expand Up @@ -284,10 +272,6 @@ function addDOType(
new: {
parent: doc.querySelector(':root > DataTypeTemplates')!,
element: doType,
reference: getReference(
doc.querySelector(':root > DataTypeTemplates')!,
'DOType'
),
},
};
}
Expand Down Expand Up @@ -324,10 +308,6 @@ function addLNodeType(
new: {
parent: doc.querySelector(':root > DataTypeTemplates')!,
element: lNodeType,
reference: getReference(
doc.querySelector('DataTypeTemplates')!,
'LNodeType'
),
},
};
}
Expand Down Expand Up @@ -398,7 +378,6 @@ export async function importIED(
new: {
parent: doc!.querySelector(':root')!,
element: ied,
reference: getReference(doc!.querySelector(':root')!, 'IED'),
},
});

Expand Down Expand Up @@ -484,7 +463,6 @@ export default class ImportingIedPlugin extends LitElement {
new: {
parent: doc.documentElement,
element,
reference: getReference(doc.documentElement, 'DataTypeTemplates'),
},
})
);
Expand Down

0 comments on commit 8deb3e0

Please sign in to comment.