aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-05-16 10:50:47 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2025-05-16 12:45:55 +0200
commit1b7e04d317dad799f9d9cfbfadcfb86a248b4250 (patch)
treeff2ccc2ea2e9fbf1200e3a40931a74cfa6aa82be
parent12fdcd0826d59a797d5e9e6aaea181dde240f503 (diff)
downloadnextcloud-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.php8
-rw-r--r--build/psalm-baseline.xml1
-rw-r--r--core/templates/filetemplates/template.odpbin13090 -> 0 bytes
-rw-r--r--core/templates/filetemplates/template.odsbin7134 -> 0 bytes
-rw-r--r--core/templates/filetemplates/template.odtbin7938 -> 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
deleted file mode 100644
index 3800a491fa6..00000000000
--- a/core/templates/filetemplates/template.odp
+++ /dev/null
Binary files differ
diff --git a/core/templates/filetemplates/template.ods b/core/templates/filetemplates/template.ods
deleted file mode 100644
index 998ea21bd73..00000000000
--- a/core/templates/filetemplates/template.ods
+++ /dev/null
Binary files differ
diff --git a/core/templates/filetemplates/template.odt b/core/templates/filetemplates/template.odt
deleted file mode 100644
index 4717040fd89..00000000000
--- a/core/templates/filetemplates/template.odt
+++ /dev/null
Binary files differ