diff --git a/src/file/paragraph/paragraph.ts b/src/file/paragraph/paragraph.ts index a047ef1fa6..b7930970b5 100644 --- a/src/file/paragraph/paragraph.ts +++ b/src/file/paragraph/paragraph.ts @@ -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; - } } diff --git a/src/file/paragraph/properties.ts b/src/file/paragraph/properties.ts index 53ae637835..5f0c651246 100644 --- a/src/file/paragraph/properties.ts +++ b/src/file/paragraph/properties.ts @@ -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; - } }