forked from mirrors/gecko-dev
Bug 1864896: Autofix unused function arguments (general). r=nika,jfkthame,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D203007
This commit is contained in:
parent
6b484b48f8
commit
f35244e188
13 changed files with 22 additions and 22 deletions
|
|
@ -23,7 +23,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1180921
|
||||||
baseURL: `file:///{id}`,
|
baseURL: `file:///{id}`,
|
||||||
|
|
||||||
allowedOrigins: new MatchPatternSet([`*://${subdomain}.example.org/*`]),
|
allowedOrigins: new MatchPatternSet([`*://${subdomain}.example.org/*`]),
|
||||||
localizeCallback(string) {},
|
localizeCallback() {},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=995943
|
||||||
|
|
||||||
function checkLoadFileURI(domain, shouldLoad) {
|
function checkLoadFileURI(domain, shouldLoad) {
|
||||||
debug("Invoking checkLoadFileURI with domain: " + domain + ", shouldLoad: " + shouldLoad);
|
debug("Invoking checkLoadFileURI with domain: " + domain + ", shouldLoad: " + shouldLoad);
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve) {
|
||||||
$('ifr').addEventListener('load', function l1() {
|
$('ifr').addEventListener('load', function l1() {
|
||||||
debug("Invoked l1 for " + domain);
|
debug("Invoked l1 for " + domain);
|
||||||
$('ifr').removeEventListener('load', l1);
|
$('ifr').removeEventListener('load', l1);
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ function test_mapping(chromeURL, target) {
|
||||||
/*
|
/*
|
||||||
* Checks that a mapping was removed
|
* Checks that a mapping was removed
|
||||||
*/
|
*/
|
||||||
function test_removed_mapping(chromeURL, target) {
|
function test_removed_mapping(chromeURL) {
|
||||||
var uri = Services.io.newURI(chromeURL);
|
var uri = Services.io.newURI(chromeURL);
|
||||||
try {
|
try {
|
||||||
gCR.convertChromeURL(uri);
|
gCR.convertChromeURL(uri);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* eslint-env worker */
|
/* eslint-env worker */
|
||||||
|
|
||||||
self.onmessage = function (data) {
|
self.onmessage = function () {
|
||||||
let myLocale = Intl.NumberFormat().resolvedOptions().locale;
|
let myLocale = Intl.NumberFormat().resolvedOptions().locale;
|
||||||
self.postMessage(myLocale);
|
self.postMessage(myLocale);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ add_test(function test_requestedLocales_matchOS() {
|
||||||
Services.prefs.setCharPref(PREF_REQUESTED_LOCALES, "ar-IR");
|
Services.prefs.setCharPref(PREF_REQUESTED_LOCALES, "ar-IR");
|
||||||
|
|
||||||
const observer = {
|
const observer = {
|
||||||
observe(aSubject, aTopic, aData) {
|
observe(aSubject, aTopic) {
|
||||||
switch (aTopic) {
|
switch (aTopic) {
|
||||||
case REQ_LOC_CHANGE_EVENT:
|
case REQ_LOC_CHANGE_EVENT:
|
||||||
const reqLocs = localeService.requestedLocales;
|
const reqLocs = localeService.requestedLocales;
|
||||||
|
|
@ -97,7 +97,7 @@ add_test(function test_requestedLocales_onChange() {
|
||||||
Services.prefs.setCharPref(PREF_REQUESTED_LOCALES, "ar-IR");
|
Services.prefs.setCharPref(PREF_REQUESTED_LOCALES, "ar-IR");
|
||||||
|
|
||||||
const observer = {
|
const observer = {
|
||||||
observe(aSubject, aTopic, aData) {
|
observe(aSubject, aTopic) {
|
||||||
switch (aTopic) {
|
switch (aTopic) {
|
||||||
case REQ_LOC_CHANGE_EVENT:
|
case REQ_LOC_CHANGE_EVENT:
|
||||||
const reqLocs = localeService.requestedLocales;
|
const reqLocs = localeService.requestedLocales;
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ function getUnicharInputStream(filename, encoding) {
|
||||||
return new CIS(fis, encoding, 8192, 0x0);
|
return new CIS(fis, encoding, 8192, 0x0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBinaryInputStream(filename, encoding) {
|
function getBinaryInputStream(filename) {
|
||||||
var file = dataDir.clone();
|
var file = dataDir.clone();
|
||||||
file.append(filename);
|
file.append(filename);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -160,16 +160,16 @@ function RedirectAndAuthStopper() {}
|
||||||
|
|
||||||
RedirectAndAuthStopper.prototype = {
|
RedirectAndAuthStopper.prototype = {
|
||||||
// nsIChannelEventSink
|
// nsIChannelEventSink
|
||||||
asyncOnChannelRedirect(oldChannel, newChannel, flags, callback) {
|
asyncOnChannelRedirect() {
|
||||||
throw Components.Exception("", Cr.NS_ERROR_ENTITY_CHANGED);
|
throw Components.Exception("", Cr.NS_ERROR_ENTITY_CHANGED);
|
||||||
},
|
},
|
||||||
|
|
||||||
// nsIAuthPrompt2
|
// nsIAuthPrompt2
|
||||||
promptAuth(channel, level, authInfo) {
|
promptAuth() {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
asyncPromptAuth(channel, callback, context, level, authInfo) {
|
asyncPromptAuth() {
|
||||||
throw Components.Exception("", Cr.NS_ERROR_NOT_IMPLEMENTED);
|
throw Components.Exception("", Cr.NS_ERROR_NOT_IMPLEMENTED);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -184,7 +184,7 @@ RedirectAndAuthStopper.prototype = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function fetchstatus(host) {
|
function fetchstatus(host) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(resolve => {
|
||||||
let xhr = new XMLHttpRequest();
|
let xhr = new XMLHttpRequest();
|
||||||
let uri = "https://" + host.name + "/";
|
let uri = "https://" + host.name + "/";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ function isTopLevel(path) {
|
||||||
return path.parent.node.type === "Program";
|
return path.parent.node.type === "Program";
|
||||||
}
|
}
|
||||||
|
|
||||||
function convertToExport(jscodeshift, path, name) {
|
function convertToExport(jscodeshift, path) {
|
||||||
const e = jscodeshift.exportNamedDeclaration(path.node);
|
const e = jscodeshift.exportNamedDeclaration(path.node);
|
||||||
e.comments = [];
|
e.comments = [];
|
||||||
e.comments = path.node.comments;
|
e.comments = path.node.comments;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const pluralize = (count, noun, suffix = "s") =>
|
||||||
var selected = [];
|
var selected = [];
|
||||||
|
|
||||||
var updateLabels = () => {
|
var updateLabels = () => {
|
||||||
$(".tab-pane.active > .filter-label").each(function (index) {
|
$(".tab-pane.active > .filter-label").each(function () {
|
||||||
let box = $("#" + this.htmlFor)[0];
|
let box = $("#" + this.htmlFor)[0];
|
||||||
let method = box.checked ? "add" : "remove";
|
let method = box.checked ? "add" : "remove";
|
||||||
$(this)[method + "Class"]("is-checked");
|
$(this)[method + "Class"]("is-checked");
|
||||||
|
|
@ -21,7 +21,7 @@ var apply = () => {
|
||||||
let filters = {};
|
let filters = {};
|
||||||
let kinds = [];
|
let kinds = [];
|
||||||
|
|
||||||
$(".filter:checked").each(function (index) {
|
$(".filter:checked").each(function () {
|
||||||
for (let kind of this.name.split(",")) {
|
for (let kind of this.name.split(",")) {
|
||||||
if (!kinds.includes(kind)) {
|
if (!kinds.includes(kind)) {
|
||||||
kinds.push(kind);
|
kinds.push(kind);
|
||||||
|
|
@ -76,7 +76,7 @@ var apply = () => {
|
||||||
var applyChunks = () => {
|
var applyChunks = () => {
|
||||||
// For tasks that have a chunk filter applied, we handle that here.
|
// For tasks that have a chunk filter applied, we handle that here.
|
||||||
let filters = {};
|
let filters = {};
|
||||||
$(".filter:text").each(function (index) {
|
$(".filter:text").each(function () {
|
||||||
let value = $(this).val();
|
let value = $(this).val();
|
||||||
if (value === "") {
|
if (value === "") {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ labels.click(function (e) {
|
||||||
|
|
||||||
function selectAll(btn) {
|
function selectAll(btn) {
|
||||||
let checked = !!btn.value;
|
let checked = !!btn.value;
|
||||||
$("div.active label.filter-label").each(function (index) {
|
$("div.active label.filter-label").each(function () {
|
||||||
$(this).find("input:checkbox")[0].checked = checked;
|
$(this).find("input:checkbox")[0].checked = checked;
|
||||||
});
|
});
|
||||||
apply();
|
apply();
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ var gStartTime2;
|
||||||
var timer;
|
var timer;
|
||||||
|
|
||||||
var observer1 = {
|
var observer1 = {
|
||||||
observe: function observeTC1(subject, topic, data) {
|
observe: function observeTC1(subject, topic) {
|
||||||
if (topic == "timer-callback") {
|
if (topic == "timer-callback") {
|
||||||
// Stop timer, so it doesn't repeat (if test runs slowly).
|
// Stop timer, so it doesn't repeat (if test runs slowly).
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
|
|
@ -30,7 +30,7 @@ var observer1 = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var observer2 = {
|
var observer2 = {
|
||||||
observe: function observeTC2(subject, topic, data) {
|
observe: function observeTC2(subject, topic) {
|
||||||
if (topic == "timer-callback") {
|
if (topic == "timer-callback") {
|
||||||
// Stop timer, so it doesn't repeat (if test runs slowly).
|
// Stop timer, so it doesn't repeat (if test runs slowly).
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ function test_notify_blocking() {
|
||||||
process.init(file);
|
process.init(file);
|
||||||
|
|
||||||
process.runAsync([], 0, {
|
process.runAsync([], 0, {
|
||||||
observe(subject, topic, data) {
|
observe(subject, topic) {
|
||||||
process = subject.QueryInterface(Ci.nsIProcess);
|
process = subject.QueryInterface(Ci.nsIProcess);
|
||||||
Assert.equal(topic, "process-failed");
|
Assert.equal(topic, "process-failed");
|
||||||
Assert.equal(process.exitValue, 42);
|
Assert.equal(process.exitValue, 42);
|
||||||
|
|
@ -145,7 +145,7 @@ function test_notify_nonblocking() {
|
||||||
process.init(file);
|
process.init(file);
|
||||||
|
|
||||||
process.runAsync(TEST_ARGS, TEST_ARGS.length, {
|
process.runAsync(TEST_ARGS, TEST_ARGS.length, {
|
||||||
observe(subject, topic, data) {
|
observe(subject, topic) {
|
||||||
process = subject.QueryInterface(Ci.nsIProcess);
|
process = subject.QueryInterface(Ci.nsIProcess);
|
||||||
Assert.equal(topic, "process-finished");
|
Assert.equal(topic, "process-finished");
|
||||||
Assert.equal(process.exitValue, 0);
|
Assert.equal(process.exitValue, 0);
|
||||||
|
|
@ -162,7 +162,7 @@ function test_notify_killed() {
|
||||||
process.init(file);
|
process.init(file);
|
||||||
|
|
||||||
process.runAsync([], 0, {
|
process.runAsync([], 0, {
|
||||||
observe(subject, topic, data) {
|
observe(subject, topic) {
|
||||||
process = subject.QueryInterface(Ci.nsIProcess);
|
process = subject.QueryInterface(Ci.nsIProcess);
|
||||||
Assert.equal(topic, "process-failed");
|
Assert.equal(topic, "process-failed");
|
||||||
do_test_finished();
|
do_test_finished();
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ function test_childkey_functions(testKey) {
|
||||||
strictEqual(testKey.hasChild(TESTDATA_CHILD_KEY), false);
|
strictEqual(testKey.hasChild(TESTDATA_CHILD_KEY), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanup_test_run(testKey, keyName) {
|
function cleanup_test_run(testKey) {
|
||||||
info("Cleaning up test.");
|
info("Cleaning up test.");
|
||||||
|
|
||||||
for (var i = 0; i < testKey.childCount; i++) {
|
for (var i = 0; i < testKey.childCount; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue