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

Commit

Permalink
refactor(theming): remove support for deprecated $mdThemingProviderTh…
Browse files Browse the repository at this point in the history
…eme.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.
  • Loading branch information
Splaktar committed Jul 27, 2020
1 parent e8e785e commit 00a50de
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/core/services/theming/theming.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,6 @@ function ThemingProvider($mdColorPalette, $$mdMetaProvider) {
});
return self;
};

self[colorType + 'Color'] = function() {
var args = Array.prototype.slice.call(arguments);
// eslint-disable-next-line no-console
console.warn('$mdThemingProviderTheme.' + colorType + 'Color() has been deprecated. ' +
'Use $mdThemingProviderTheme.' + colorType + 'Palette() instead.');
return self[colorType + 'Palette'].apply(self, args);
};
});
}

Expand Down

0 comments on commit 00a50de

Please sign in to comment.