Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 00a50de

Browse files
committed
refactor(theming): remove support for deprecated $mdThemingProviderTheme.primaryColor() and related APIs
BREAKING CHANGE: Removed support for the deprecated `$mdThemingProviderTheme.primaryColor()` and the related accent/warn/background APIs. These were deprecated in favor of `$mdThemingProviderTheme.primaryPalette()` (and accent/warn/background) in 2015 and they have been logging warnings when used since then.
1 parent e8e785e commit 00a50de

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/core/services/theming/theming.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -596,14 +596,6 @@ function ThemingProvider($mdColorPalette, $$mdMetaProvider) {
596596
});
597597
return self;
598598
};
599-
600-
self[colorType + 'Color'] = function() {
601-
var args = Array.prototype.slice.call(arguments);
602-
// eslint-disable-next-line no-console
603-
console.warn('$mdThemingProviderTheme.' + colorType + 'Color() has been deprecated. ' +
604-
'Use $mdThemingProviderTheme.' + colorType + 'Palette() instead.');
605-
return self[colorType + 'Palette'].apply(self, args);
606-
};
607599
});
608600
}
609601

0 commit comments

Comments
 (0)