summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-08 17:06:44 -0500
committerGitHub <noreply@github.com>2020-11-08 17:06:44 -0500
commit681065e5549e3f6bf54e416120884481bded5b6e (patch)
tree491382e39f85906291b85059d03b60e6546f4dae
parent6232e3efc204037e25f39ec5d70f31011b042b58 (diff)
Remove unused functions from backend.js (#1014)
-rw-r--r--ext/bg/js/backend.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 3f00994a..d1d25153 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -1255,11 +1255,6 @@ class Backend {
return false;
}
- _getTemplates(options) {
- const templates = options.anki.fieldTemplates;
- return typeof templates === 'string' ? templates : this._defaultAnkiFieldTemplates;
- }
-
async _getTabUrl(tabId) {
try {
const {url} = await this._sendMessageTabPromise(
@@ -1462,23 +1457,6 @@ class Backend {
return isValidTab ? tab : null;
}
- _environmentHasDocument() {
- return (typeof document === 'object' && document !== null);
- }
-
- _executePasteCommand() {
- document.execCommand('paste');
- }
-
- _readFileAsDataURL(file) {
- return new Promise((resolve, reject) => {
- const reader = new FileReader();
- reader.onload = () => resolve(reader.result);
- reader.onerror = () => reject(reader.error);
- reader.readAsDataURL(file);
- });
- }
-
async _getScreenshot(windowId, tabId, ownerFrameId, format, quality) {
if (typeof windowId !== 'number') {
throw new Error('Invalid window ID');