Skip to content

Commit f845d24

Browse files
committed
Silent deprecation
1 parent e224157 commit f845d24

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/clamp.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ const clampChroma = color => {
6464
return conv(clamped);
6565
};
6666

67+
// Deprecated / no longer documented
6768
const clamp = (method = 'rgb') => {
68-
console.warn(
69-
'culori.clamp() is deprecated and will be removed from the 1.x release.'
70-
);
7169
switch (method) {
7270
case 'rgb':
7371
return clampRgb;

src/formatter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ const formatRgb = c => {
3939
}
4040
};
4141

42+
// Deprecated / no longer documented
4243
const formatter = (format = 'rgb') => {
43-
console.warn(
44-
'culori.formatter() is deprecated and will be removed from the 1.x version. Use individual formatters instead.'
45-
);
4644
switch (format) {
4745
case 'rgb':
4846
return formatRgb;

0 commit comments

Comments
 (0)