cleanup unused js parameters

This commit is contained in:
the-djmaze 2024-04-03 00:15:29 +02:00
parent ed673fdba8
commit 3988ea9ba5
3 changed files with 5 additions and 7 deletions

View file

@ -38,11 +38,10 @@ export const
/** /**
* @param {string} download * @param {string} download
* @param {string=} customSpecSuffix
* @returns {string} * @returns {string}
*/ */
attachmentDownload = (download, customSpecSuffix) => attachmentDownload = (download) =>
serverRequestRaw('Download', download, customSpecSuffix), serverRequestRaw('Download', download),
proxy = url => proxy = url =>
BASE + '?/ProxyExternal/' BASE + '?/ProxyExternal/'

View file

@ -45,8 +45,7 @@ export const
} }
} }
if (Intl.RelativeTimeFormat) { if (Intl.RelativeTimeFormat) {
let rtf = new Intl.RelativeTimeFormat(doc.documentElement.lang); return (new Intl.RelativeTimeFormat(doc.documentElement.lang)).format(seconds, unit);
return rtf.format(seconds, unit);
} }
// Safari < 14 // Safari < 14
abs = Math.abs(seconds); abs = Math.abs(seconds);

View file

@ -165,8 +165,8 @@ export const GnuPGUserStore = new class {
return fingerprints; return fingerprints;
} }
getPrivateKeyFor(query, sign) { getPrivateKeyFor(query/*, sign*/) {
return findGnuPGKey(this.privateKeys, query, sign); return findGnuPGKey(this.privateKeys, query/*, sign*/);
} }
async decrypt(message) { async decrypt(message) {