diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-05-16 10:50:47 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-05-16 12:45:55 +0200 |
commit | 1b7e04d317dad799f9d9cfbfadcfb86a248b4250 (patch) | |
tree | ff2ccc2ea2e9fbf1200e3a40931a74cfa6aa82be | |
parent | 12fdcd0826d59a797d5e9e6aaea181dde240f503 (diff) | |
download | nextcloud-server-chore/remove-files-templates.tar.gz nextcloud-server-chore/remove-files-templates.zip |
chore: remove files file templates deprecated since v18 and provided by richdocumentschore/remove-files-templates
- leftover from https://github.com/nextcloud/server/pull/17559
- The file templates are already provided in a non-deprecated way by
richdocuments.
- The template manager used here is deprecated for 14 versions now...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | apps/files/lib/AppInfo/Application.php | 8 | ||||
-rw-r--r-- | build/psalm-baseline.xml | 1 | ||||
-rw-r--r-- | core/templates/filetemplates/template.odp | bin | 13090 -> 0 bytes | |||
-rw-r--r-- | core/templates/filetemplates/template.ods | bin | 7134 -> 0 bytes | |||
-rw-r--r-- | core/templates/filetemplates/template.odt | bin | 7938 -> 0 bytes |
5 files changed, 0 insertions, 9 deletions
diff --git a/apps/files/lib/AppInfo/Application.php b/apps/files/lib/AppInfo/Application.php index 4b3948d43b5..32c072ef0f4 100644 --- a/apps/files/lib/AppInfo/Application.php +++ b/apps/files/lib/AppInfo/Application.php @@ -132,7 +132,6 @@ class Application extends App implements IBootstrap { public function boot(IBootContext $context): void { $context->injectFn(Closure::fromCallable([$this, 'registerCollaboration'])); $context->injectFn([Listener::class, 'register']); - $this->registerTemplates(); $this->registerHooks(); } @@ -140,13 +139,6 @@ class Application extends App implements IBootstrap { $providerManager->registerResourceProvider(ResourceProvider::class); } - private function registerTemplates(): void { - $templateManager = \OC_Helper::getFileTemplateManager(); - $templateManager->registerTemplate('application/vnd.oasis.opendocument.presentation', 'core/templates/filetemplates/template.odp'); - $templateManager->registerTemplate('application/vnd.oasis.opendocument.text', 'core/templates/filetemplates/template.odt'); - $templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', 'core/templates/filetemplates/template.ods'); - } - private function registerHooks(): void { Util::connectHook('\OCP\Config', 'js', '\OCA\Files\App', 'extendJsConfig'); } diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 8d409314d4d..ad021d02fde 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1344,7 +1344,6 @@ </DeprecatedInterface> <DeprecatedMethod> <code><![CDATA[Util::connectHook('\OCP\Config', 'js', '\OCA\Files\App', 'extendJsConfig')]]></code> - <code><![CDATA[\OC_Helper::getFileTemplateManager()]]></code> <code><![CDATA[getUserFolder]]></code> <code><![CDATA[getUserFolder]]></code> </DeprecatedMethod> diff --git a/core/templates/filetemplates/template.odp b/core/templates/filetemplates/template.odp Binary files differdeleted file mode 100644 index 3800a491fa6..00000000000 --- a/core/templates/filetemplates/template.odp +++ /dev/null diff --git a/core/templates/filetemplates/template.ods b/core/templates/filetemplates/template.ods Binary files differdeleted file mode 100644 index 998ea21bd73..00000000000 --- a/core/templates/filetemplates/template.ods +++ /dev/null diff --git a/core/templates/filetemplates/template.odt b/core/templates/filetemplates/template.odt Binary files differdeleted file mode 100644 index 4717040fd89..00000000000 --- a/core/templates/filetemplates/template.odt +++ /dev/null |