Skip to content

Commit 06921ff

Browse files
authored
refactor(cdk/table): remove deprecated APIs for version 10 (#19310)
1 parent 8125651 commit 06921ff

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/cdk/table/table.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -544,32 +544,6 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
544544
this.updateStickyColumnStyles();
545545
}
546546

547-
/**
548-
* Sets the header row definition to be used. Overrides the header row definition gathered by
549-
* using `ContentChild`, if one exists. Sets a flag that will re-render the header row after the
550-
* table's content is checked.
551-
* @docs-private
552-
* @deprecated Use `addHeaderRowDef` and `removeHeaderRowDef` instead
553-
* @breaking-change 8.0.0
554-
*/
555-
setHeaderRowDef(headerRowDef: CdkHeaderRowDef) {
556-
this._customHeaderRowDefs = new Set([headerRowDef]);
557-
this._headerRowDefChanged = true;
558-
}
559-
560-
/**
561-
* Sets the footer row definition to be used. Overrides the footer row definition gathered by
562-
* using `ContentChild`, if one exists. Sets a flag that will re-render the footer row after the
563-
* table's content is checked.
564-
* @docs-private
565-
* @deprecated Use `addFooterRowDef` and `removeFooterRowDef` instead
566-
* @breaking-change 8.0.0
567-
*/
568-
setFooterRowDef(footerRowDef: CdkFooterRowDef) {
569-
this._customFooterRowDefs = new Set([footerRowDef]);
570-
this._footerRowDefChanged = true;
571-
}
572-
573547
/** Adds a column definition that was not included as part of the content children. */
574548
addColumnDef(columnDef: CdkColumnDef) {
575549
this._customColumnDefs.add(columnDef);

tools/public_api_guard/cdk/table.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ export declare class CdkTable<T> implements AfterContentChecked, CollectionViewe
209209
removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
210210
removeRowDef(rowDef: CdkRowDef<T>): void;
211211
renderRows(): void;
212-
setFooterRowDef(footerRowDef: CdkFooterRowDef): void;
213-
setHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
214212
updateStickyColumnStyles(): void;
215213
updateStickyFooterRowStyles(): void;
216214
updateStickyHeaderRowStyles(): void;

0 commit comments

Comments
 (0)