removed getStyles and clearPageBreak that became useless

This commit is contained in:
Sergio Mendonça
2018-09-25 00:10:27 -03:00
parent 4ca81df401
commit 4de6b51e76
2 changed files with 0 additions and 21 deletions

View File

@ -236,18 +236,8 @@ export class Paragraph extends XmlComponent {
return this;
}
public getStyles(): Style[] {
return this.properties.getStyles();
}
public addTabStop(run: Run): Paragraph {
this.root.splice(1, 0, run);
return this;
}
public clearPageBreaks(): Paragraph {
this.root = this.root.filter((child) => !(child instanceof PageBreak));
this.properties.clearPageBreaks();
return this;
}
}

View File

@ -1,8 +1,6 @@
// http://officeopenxml.com/WPparagraphProperties.php
import { XmlComponent } from "file/xml-components";
import { Border } from "./formatting/border";
import { PageBreakBefore } from "./formatting/page-break";
import { Style } from "./formatting/style";
export class ParagraphProperties extends XmlComponent {
public paragraphBorder: Border;
@ -19,13 +17,4 @@ export class ParagraphProperties extends XmlComponent {
public push(item: XmlComponent): void {
this.root.push(item);
}
public getStyles(): Style[] {
return this.root.filter((child) => child instanceof Style) as Style[];
}
public clearPageBreaks(): ParagraphProperties {
this.root = this.root.filter((child) => !(child instanceof PageBreakBefore));
return this;
}
}