Skip to content

Commit d7dee0e

Browse files
committed
Remove the hasPrefixedFirefox functionality from the external/builder/builder.js file
This functionality has been completely unused ever since PR 9566 (two years ago).
1 parent ce234ab commit d7dee0e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

external/builder/builder.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,6 @@ function preprocess(inFilename, outFilename, defines) {
197197
exports.preprocess = preprocess;
198198

199199
function preprocessCSS(mode, source, destination) {
200-
function hasPrefixedFirefox(line) {
201-
return /(^|\W)-(ms|o|webkit)-\w/.test(line);
202-
}
203-
204200
function hasPrefixedMozcentral(line) {
205201
return /(^|\W)-(ms|o|webkit)-\w/.test(line);
206202
}
@@ -269,11 +265,8 @@ function preprocessCSS(mode, source, destination) {
269265

270266
var content = fs.readFileSync(source, "utf8").toString();
271267
content = expandImports(content, source);
272-
if (mode === "mozcentral" || mode === "firefox") {
273-
content = removePrefixed(
274-
content,
275-
mode === "mozcentral" ? hasPrefixedMozcentral : hasPrefixedFirefox
276-
);
268+
if (mode === "mozcentral") {
269+
content = removePrefixed(content, hasPrefixedMozcentral);
277270
}
278271
fs.writeFileSync(destination, content);
279272
}

0 commit comments

Comments
 (0)