mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 11:36:24 +01:00
Remove unused variable
This commit is contained in:
parent
97ade0659c
commit
6b4bb762aa
@ -26,7 +26,6 @@ const idToPrepend = "icon-url";
|
|||||||
function extractUrl(decl) {
|
function extractUrl(decl) {
|
||||||
const value = decl.value;
|
const value = decl.value;
|
||||||
const parsed = valueParser(value);
|
const parsed = valueParser(value);
|
||||||
const variables = [];
|
|
||||||
parsed.walk(node => {
|
parsed.walk(node => {
|
||||||
if (node.type !== "function" || node.value !== "url") {
|
if (node.type !== "function" || node.value !== "url") {
|
||||||
return;
|
return;
|
||||||
@ -43,7 +42,6 @@ function extractUrl(decl) {
|
|||||||
node.nodes[0] = varNode;
|
node.nodes[0] = varNode;
|
||||||
});
|
});
|
||||||
decl.assign({prop: decl.prop, value: parsed.toString()})
|
decl.assign({prop: decl.prop, value: parsed.toString()})
|
||||||
return variables;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function addResolvedVariablesToRootSelector(root, { Rule, Declaration }) {
|
function addResolvedVariablesToRootSelector(root, { Rule, Declaration }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user