summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorDaniel Hansson <mailto@danielhansson.nu>2023-10-02 10:54:36 +0200
committerfenn-cs <fenn25.fn@gmail.com>2023-10-09 15:41:49 +0100
commitc9e130ba27ba507876e2253e48c4f2d9e64def79 (patch)
tree0d6429d768f30d642dd4dbddb0440074a91f1922 /lib/private
parentcf941ac30a4b6c4e85de5ec8b3218f4688d92821 (diff)
downloadnextcloud-server-c9e130ba27ba507876e2253e48c4f2d9e64def79.tar.gz
nextcloud-server-c9e130ba27ba507876e2253e48c4f2d9e64def79.zip
also remove function
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Preview/Generator.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index 1bb0e42d260..d75d9c84cd2 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -221,25 +221,6 @@ class Generator {
}
/**
- * Generate a small image straight away without generating a max preview first
- * Preview generated is 256x256
- *
- * @param ISimpleFile[] $previewFiles
- *
- * @throws NotFoundException
- */
- private function getSmallImagePreview(ISimpleFolder $previewFolder, array $previewFiles, File $file, string $mimeType, string $prefix, bool $crop): ISimpleFile {
- $width = 256;
- $height = 256;
-
- try {
- return $this->getCachedPreview($previewFiles, $width, $height, $crop, $mimeType, $prefix);
- } catch (NotFoundException $e) {
- return $this->generateProviderPreview($previewFolder, $file, $width, $height, $crop, false, $mimeType, $prefix);
- }
- }
-
- /**
* Acquire a semaphore of the specified id and concurrency, blocking if necessary.
* Return an identifier of the semaphore on success, which can be used to release it via
* {@see Generator::unguardWithSemaphore()}.