remove from API delete()/IsDeleted(), and deleted check from prepForXml; not useful in declarative style API
This commit is contained in:
@ -14,12 +14,6 @@ export abstract class XmlComponent extends BaseXmlComponent {
|
||||
|
||||
public prepForXml(context: IContext): IXmlableObject | undefined {
|
||||
const children = this.root
|
||||
.filter((c) => {
|
||||
if (c instanceof BaseXmlComponent) {
|
||||
return !c.IsDeleted;
|
||||
}
|
||||
return c !== undefined;
|
||||
})
|
||||
.map((comp) => {
|
||||
if (comp instanceof BaseXmlComponent) {
|
||||
return comp.prepForXml(context);
|
||||
@ -44,10 +38,6 @@ export abstract class XmlComponent extends BaseXmlComponent {
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public delete(): void {
|
||||
this.deleted = true;
|
||||
}
|
||||
}
|
||||
|
||||
export abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
||||
|
Reference in New Issue
Block a user