Skip to content

Commit

Permalink
remove unused isValueBrowserHack export (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartveneman authored Jul 13, 2024
1 parent fd156f5 commit b131d84
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,10 +941,6 @@ export {
isMediaBrowserhack
} from './atrules/atrules.js'

export {
isBrowserhack as isValueBrowserhack
} from './values/browserhacks.js'

export {
isHack as isPropertyHack,
} from './properties/property-utils.js'
Expand Down
5 changes: 0 additions & 5 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
isSelectorPrefixed,
isMediaBrowserhack,
isSupportsBrowserhack,
isValueBrowserhack,
isPropertyHack,
isValuePrefixed,
hasVendorPrefix,
Expand Down Expand Up @@ -44,10 +43,6 @@ Api('exposes the "isSupportsBrowserhack" method', () => {
assert.is(typeof isSupportsBrowserhack, "function")
})

Api('exposes the "isValueBrowserhack" method', () => {
assert.is(typeof isValueBrowserhack, "function")
})

Api('exposes the "isPropertyHack" method', () => {
assert.is(typeof isPropertyHack, "function")
})
Expand Down
8 changes: 0 additions & 8 deletions src/values/browserhacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,3 @@ export function isIe9Hack(node) {
}
return false
}

/**
* @param {import('css-tree').Value} node
* @param {boolean|string} important - // i.e. `property: value !ie`
*/
export function isBrowserhack(node, important) {
return isIe9Hack(node) || typeof important === 'string'
}

0 comments on commit b131d84

Please sign in to comment.