Skip to content

Commit ceed12c

Browse files
authored
refactor!: remove deprecated symbols (#145)
1 parent f6f839f commit ceed12c

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

projects/material-css-vars/src/lib/_public-util.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@
116116

117117
// mixins
118118
// ------
119-
@mixin mat-css-color-and-contrast($hue) {
120-
@warn "mat-css-color-and-contrast() is deprecated. Please use mat-css-color-and-contrast-primary() instead.";
121-
@include mat-css-color-and-contrast-primary($hue);
122-
}
123-
124119
@mixin mat-css-color-and-contrast-primary($hue) {
125120
background: mat-css-color-primary($hue);
126121
color: mat-css-contrast-color($hue);

projects/material-css-vars/src/lib/material-css-vars.service.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -191,29 +191,6 @@ export class MaterialCssVarsService {
191191
this.setWarnColor(this.warn);
192192
}
193193

194-
/** @deprecated use setContrastColorThresholdPrimary instead */
195-
changeContrastColorThresholdPrimary(threshold: HueValue) {
196-
this.setContrastColorThresholdPrimary(threshold);
197-
}
198-
199-
/** @deprecated use setContrastColorThresholdAccent instead */
200-
changeContrastColorThresholdAccent(threshold: HueValue) {
201-
this.setContrastColorThresholdAccent(threshold);
202-
}
203-
204-
/** @deprecated use setContrastColorThresholdWarn instead */
205-
changeContrastColorThresholdWarn(threshold: HueValue) {
206-
this.setContrastColorThresholdWarn(threshold);
207-
}
208-
209-
/** @deprecated use setContrastColorThreshold instead */
210-
changeContrastColorThreshold(
211-
threshold: HueValue,
212-
palettePrefix: MatCssPalettePrefix,
213-
) {
214-
this.setContrastColorThreshold(threshold, palettePrefix);
215-
}
216-
217194
getPaletteForColor(hex: string): MatCssHueColorMapItem[] {
218195
if (this.cfg.isAlternativeColorAlgorithm) {
219196
return this.getTraditionalPaletteForColor(hex);

0 commit comments

Comments
 (0)