From 84e2610ade4abeeb23fa4af01a1d8bfee2a8f73d Mon Sep 17 00:00:00 2001 From: crisbeto Date: Sun, 10 May 2020 16:01:08 +0200 Subject: [PATCH] refactor(cdk/table): remove deprecated APIs for version 10 Removes the APIs that have been deprecated for v10. BREAKING CHANGES: * `CdkTable.setHeaderRowDef` has been removed. Use `CdkTable.addHeaderRowDef` and `CdkTable.removeHeaderRowDef` instead. * `CdkTable.setFooterRowDef` has been removed. Use `CdkTable.addFooterRowDef` and `CdkTable.removeFooterRowDef` instead. --- src/cdk/table/table.ts | 26 -------------------------- tools/public_api_guard/cdk/table.d.ts | 2 -- 2 files changed, 28 deletions(-) diff --git a/src/cdk/table/table.ts b/src/cdk/table/table.ts index 549630e4dbc5..1dabd49ad286 100644 --- a/src/cdk/table/table.ts +++ b/src/cdk/table/table.ts @@ -544,32 +544,6 @@ export class CdkTable implements AfterContentChecked, CollectionViewer, OnDes this.updateStickyColumnStyles(); } - /** - * Sets the header row definition to be used. Overrides the header row definition gathered by - * using `ContentChild`, if one exists. Sets a flag that will re-render the header row after the - * table's content is checked. - * @docs-private - * @deprecated Use `addHeaderRowDef` and `removeHeaderRowDef` instead - * @breaking-change 8.0.0 - */ - setHeaderRowDef(headerRowDef: CdkHeaderRowDef) { - this._customHeaderRowDefs = new Set([headerRowDef]); - this._headerRowDefChanged = true; - } - - /** - * Sets the footer row definition to be used. Overrides the footer row definition gathered by - * using `ContentChild`, if one exists. Sets a flag that will re-render the footer row after the - * table's content is checked. - * @docs-private - * @deprecated Use `addFooterRowDef` and `removeFooterRowDef` instead - * @breaking-change 8.0.0 - */ - setFooterRowDef(footerRowDef: CdkFooterRowDef) { - this._customFooterRowDefs = new Set([footerRowDef]); - this._footerRowDefChanged = true; - } - /** Adds a column definition that was not included as part of the content children. */ addColumnDef(columnDef: CdkColumnDef) { this._customColumnDefs.add(columnDef); diff --git a/tools/public_api_guard/cdk/table.d.ts b/tools/public_api_guard/cdk/table.d.ts index 4020f46ffd62..ab08f3d488ed 100644 --- a/tools/public_api_guard/cdk/table.d.ts +++ b/tools/public_api_guard/cdk/table.d.ts @@ -209,8 +209,6 @@ export declare class CdkTable implements AfterContentChecked, CollectionViewe removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void; removeRowDef(rowDef: CdkRowDef): void; renderRows(): void; - setFooterRowDef(footerRowDef: CdkFooterRowDef): void; - setHeaderRowDef(headerRowDef: CdkHeaderRowDef): void; updateStickyColumnStyles(): void; updateStickyFooterRowStyles(): void; updateStickyHeaderRowStyles(): void;