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