Remove the hasPrefixedFirefox
functionality from the external/builder/builder.js
file
This functionality has been completely unused ever since PR 9566 (two years ago).
This commit is contained in:
parent
ce234ab3c7
commit
d7dee0ea1c
11
external/builder/builder.js
vendored
11
external/builder/builder.js
vendored
@ -197,10 +197,6 @@ function preprocess(inFilename, outFilename, defines) {
|
|||||||
exports.preprocess = preprocess;
|
exports.preprocess = preprocess;
|
||||||
|
|
||||||
function preprocessCSS(mode, source, destination) {
|
function preprocessCSS(mode, source, destination) {
|
||||||
function hasPrefixedFirefox(line) {
|
|
||||||
return /(^|\W)-(ms|o|webkit)-\w/.test(line);
|
|
||||||
}
|
|
||||||
|
|
||||||
function hasPrefixedMozcentral(line) {
|
function hasPrefixedMozcentral(line) {
|
||||||
return /(^|\W)-(ms|o|webkit)-\w/.test(line);
|
return /(^|\W)-(ms|o|webkit)-\w/.test(line);
|
||||||
}
|
}
|
||||||
@ -269,11 +265,8 @@ function preprocessCSS(mode, source, destination) {
|
|||||||
|
|
||||||
var content = fs.readFileSync(source, "utf8").toString();
|
var content = fs.readFileSync(source, "utf8").toString();
|
||||||
content = expandImports(content, source);
|
content = expandImports(content, source);
|
||||||
if (mode === "mozcentral" || mode === "firefox") {
|
if (mode === "mozcentral") {
|
||||||
content = removePrefixed(
|
content = removePrefixed(content, hasPrefixedMozcentral);
|
||||||
content,
|
|
||||||
mode === "mozcentral" ? hasPrefixedMozcentral : hasPrefixedFirefox
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
fs.writeFileSync(destination, content);
|
fs.writeFileSync(destination, content);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user