From f72bfba9622bc228d126fc444eea6ef3ae3c9615 Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Thu, 15 Nov 2018 09:51:13 +0100 Subject: [PATCH] Cleanup. --- content_plugins/plugins/mixins.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/content_plugins/plugins/mixins.py b/content_plugins/plugins/mixins.py index 3d7d08f..863ae2c 100644 --- a/content_plugins/plugins/mixins.py +++ b/content_plugins/plugins/mixins.py @@ -28,14 +28,6 @@ class StyleMixin(models.Model): style = getattr(self, 'style', None) or 'default' return slugify(style).replace("_", "-") - # TODO Remove stale code - # # Compatibiliy with super classes not having a prefixed_path method - # def prefixed_path(self, path): - # if hasattr(super(), 'prefixed_path'): - # return super().prefixed_path(path) - # else: - # return path - def add_styled_template_names(self, template_names): """ if super().get_template_names(): @@ -59,7 +51,6 @@ class StyleMixin(models.Model): name=name, style=self.style, ext=ext), template ] - return extended_template_names def get_template_names(self):