Skip to content

Commit 949dd81

Browse files
committed
refactor: remove unused functions
1 parent 468679f commit 949dd81

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

src/material/core/tokens/_m3-tokens.scss

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -46,56 +46,6 @@
4646
@use './m3';
4747
@use 'sass:map';
4848

49-
/// Generates tokens for the given palette with the given prefix.
50-
/// @param {Map} $palette The palette to generate tokens for
51-
/// @param {String} $prefix The key prefix used to name the tokens
52-
/// @return {Map} A set of tokens for the given palette
53-
@function _generate-palette-tokens($palette, $prefix) {
54-
$palette: map.remove($palette, neutral, neutral-variant);
55-
$result: ();
56-
@each $hue, $value in $palette {
57-
$result: map.set($result, '#{$prefix}#{$hue}', $value);
58-
}
59-
@return $result;
60-
}
61-
62-
/// Creates a set of `md-ref-palette` tokens from the given palettes. (See
63-
/// ./m3/definitions/_md-ref-palette.scss)
64-
/// @param {Map} $primary The primary palette
65-
/// @param {Map} $secondary The secondary palette
66-
/// @param {Map} $tertiary The tertiary palette
67-
/// @param {Map} $error The error palette
68-
/// @return {Map} A set of `md-ref-palette` tokens
69-
@function generate-ref-palette-tokens($primary, $tertiary, $error) {
70-
@return sass-utils.merge-all(
71-
(black: #000, white: #fff),
72-
_generate-palette-tokens($primary, primary),
73-
_generate-palette-tokens(map.get($primary, secondary), secondary),
74-
_generate-palette-tokens($tertiary, tertiary),
75-
_generate-palette-tokens(map.get($primary, neutral), neutral),
76-
_generate-palette-tokens(map.get($primary, neutral-variant), neutral-variant),
77-
_generate-palette-tokens($error, error),
78-
);
79-
}
80-
81-
/// Creates a set of `md-ref-typeface` tokens from the given palettes. (See
82-
/// ./m3/definitions/_md-ref-typeface.scss)
83-
/// @param {List|String} $brand The font-family to use for brand text
84-
/// @param {List|String} $plain The font-family to use for plain text
85-
/// @param {String} $bold The font-weight to use for bold text
86-
/// @param {String} $medium The font-weight to use for medium text
87-
/// @param {String} $regular The font-weight to use for regular text
88-
/// @return {Map} A set of `md-ref-typeface` tokens
89-
@function generate-ref-typeface-tokens($brand, $plain, $bold, $medium, $regular) {
90-
@return (
91-
brand: $brand,
92-
plain: $plain,
93-
weight-bold: $bold,
94-
weight-medium: $medium,
95-
weight-regular: $regular,
96-
);
97-
}
98-
9949
$_cached-token-slots: null;
10050

10151
/// Determines the token slots for all components.

0 commit comments

Comments
 (0)