From d29d4ba110b4000374f29fdff31ccb912e19f744 Mon Sep 17 00:00:00 2001 From: Michael Price Date: Mon, 12 Mar 2018 15:54:45 -0400 Subject: [PATCH] Remove unused staging file method. Signed-off-by: Michael Price --- mayan/apps/sources/models.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mayan/apps/sources/models.py b/mayan/apps/sources/models.py index 5b28336e08..c7f959ec80 100644 --- a/mayan/apps/sources/models.py +++ b/mayan/apps/sources/models.py @@ -30,7 +30,6 @@ from model_utils.managers import InheritanceManager from common.compat import collapse_rfc2231_value from common.compressed_files import CompressedFile, NotACompressedFile from common.utils import TemporaryFile -from converter.literals import DIMENSION_SEPARATOR from converter.models import Transformation from djcelery.models import PeriodicTask, IntervalSchedule from documents.models import Document, DocumentType @@ -337,14 +336,6 @@ class StagingFolderSource(InteractiveSource): verbose_name = _('Staging folder') verbose_name_plural = _('Staging folders') - def get_preview_size(self): - dimensions = [] - dimensions.append(force_text(self.preview_width)) - if self.preview_height: - dimensions.append(force_text(self.preview_height)) - - return DIMENSION_SEPARATOR.join(dimensions) - def get_file(self, *args, **kwargs): return StagingFile(staging_folder=self, *args, **kwargs)