Remove the createDownloadManager method from DefaultExternalServices

Given the simplicity of the `createDownloadManager` method, we can leverage import maps to directly initialize the correct `DownloadManager`-instance depending on the build.
This commit is contained in:
Jonas Jenwald 2024-01-26 11:50:25 +01:00
parent d8f77e6b84
commit 1698991ae2
8 changed files with 9 additions and 20 deletions

View file

@ -16,7 +16,6 @@
import { DefaultExternalServices, PDFViewerApplication } from "./app.js";
import { AppOptions } from "./app_options.js";
import { BasePreferences } from "./preferences.js";
import { DownloadManager } from "./download_manager.js";
import { GenericL10n } from "./genericl10n.js";
import { GenericScripting } from "./generic_scripting.js";
@ -39,10 +38,6 @@ class GenericPreferences extends BasePreferences {
}
class GenericExternalServices extends DefaultExternalServices {
static createDownloadManager() {
return new DownloadManager();
}
static createPreferences() {
return new GenericPreferences();
}