Skip to content

Commit 328cc0e

Browse files
Remove warning if RFS is included more than once (#73)
1 parent 181c865 commit 328cc0e

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

scss.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,3 @@ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
202202
@mixin responsive-font-size($fs, $important: false) {
203203
@include rfs($fs, $important);
204204
}
205-
206-
$rfs-is-included: false !default;
207-
208-
@if $rfs-is-included {
209-
@warn "Watch out, RFS is included more than once!";
210-
}
211-
212-
$rfs-is-included: true;

stylus.styl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,3 @@ rfs($fs, $important = false)
172172
// The responsive-font-size mixin uses RFS to rescale font sizes
173173
responsive-font-size($fs, $important = false)
174174
rfs($fs, $important)
175-
176-
$rfs-is-included ?= false
177-
178-
if $rfs-is-included
179-
warn("Watch out, RFS is included more than once!")
180-
181-
$rfs-is-included = true

test/lib/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ module.exports = [
3737
},
3838
{
3939
id: 'test-10',
40-
name: 'Include mixins multiple times (Should throw a warning for SCSS & Stylus and not fail for less & PostCSS)'
40+
name: 'Include mixins multiple times'
4141
},
4242
];

0 commit comments

Comments
 (0)