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

Commit 7045639

Browse files
committed
Remove dead code
1 parent ca7e179 commit 7045639

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

TODO.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@
9494
- [x] Unify base styles into the same "rules" abstraction
9595
- [x] Design user-facing API for authoring on-demand plugins
9696

97+
### Mar 8
98+
99+
- [x] Put plugins in deliberate order
100+
- [x] Fix bug with `@apply` populating a cache that caused stale CSS
101+
97102
#### Next
98103

99104
- [ ] Support `modifySelectors` in variant API
@@ -105,7 +110,6 @@
105110
- [ ] Only use `transformThemeValue` where necessary
106111
- [ ] Support "dynamic" variants (like group-2, etc.)
107112
- [ ] Refactor plugins to an abstraction that handles negative values, transformThemeValue, etc.
108-
- [ ] Put plugins in deliberate order
109113
- [ ] Include vendor prefixes for modern browsers by default so autoprefixer is only needed in production?
110114
- [ ] Cache Preflight styles? They only change when the config changes (default font family, border color, etc.)
111115
- [ ] Cache entire PostCSS tree and re-use if no candidate cache misses

src/corePlugins/animation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const nameClass = require('tailwindcss/lib/util/nameClass').default
22
const transformThemeValue = require('tailwindcss/lib/util/transformThemeValue').default
33
const parseAnimationValue = require('tailwindcss/lib/util/parseAnimationValue').default
4-
const { newFormat } = require('../pluginUtils')
54

65
module.exports = function ({ matchUtilities, jit: { theme } }) {
76
let keyframes = Object.fromEntries(

src/pluginUtils.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ function updateLastClasses(selectors, updateClass) {
4343
return result
4444
}
4545

46-
function ruleIsEmpty([selector, rules]) {
47-
return Array.isArray(rules) && rules.length === 0
48-
}
49-
5046
function transformAllSelectors(transformSelector, wrap = null) {
5147
return ({ container }) => {
5248
container.walkRules((rule) => {
@@ -120,11 +116,6 @@ function asUnit(modifier, units, lookup = {}) {
120116
})
121117
}
122118

123-
function newFormat(plugin) {
124-
plugin.format = 'new'
125-
return plugin
126-
}
127-
128119
module.exports = {
129120
updateAllClasses,
130121
updateLastClasses,
@@ -193,8 +184,4 @@ module.exports = {
193184
lookup
194185
)
195186
},
196-
newFormat(plugin) {
197-
plugin.format = 'new'
198-
return plugin
199-
},
200187
}

0 commit comments

Comments
 (0)