Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 253fb51

Browse files
committed
remove unused variables
1 parent 14fce9c commit 253fb51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/expandApplyAtRules.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const postcss = require('postcss')
21
const generateRules = require('./generateRules')
32
const { bigSign, toPostCssNode, isPlainObject } = require('./utils')
43
const escape = require('tailwindcss/lib/util/escapeClassName').default
@@ -67,7 +66,7 @@ function expandApplyAtRules(context) {
6766
throw new Error('Utility does not exist!')
6867
}
6968

70-
let [layerName, rules] = context.classCache.get(applyCandidate)
69+
let [, rules] = context.classCache.get(applyCandidate)
7170
for (let [sort, [selector, rule]] of rules) {
7271
siblings.push([
7372
sort,
@@ -82,7 +81,7 @@ function expandApplyAtRules(context) {
8281
}
8382

8483
// Inject the rules, sorted, correctly
85-
for (let [sort, sibling] of siblings.sort(([a], [z]) => bigSign(z - a))) {
84+
for (let [, sibling] of siblings.sort(([a], [z]) => bigSign(z - a))) {
8685
// `apply.parent` is referring to the node at `.abc` in: .abc { @apply mt-2 }
8786
apply.parent.after(sibling)
8887
}

0 commit comments

Comments
 (0)