From dbd5bf655f1eaa5edc1931ef58071474f65465ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 3 Apr 2021 09:56:43 +0200 Subject: [PATCH] trivial: remove unused get_template_from_script function (#52732) --- wcs/qommon/template.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wcs/qommon/template.py b/wcs/qommon/template.py index 4214abd3a..4a1be6c21 100644 --- a/wcs/qommon/template.py +++ b/wcs/qommon/template.py @@ -34,16 +34,6 @@ from quixote.util import StaticDirectory, StaticFile from . import ezt, force_str -def get_template_from_script(filename): - local_result = {} - exec( - open(filename).read(), - {'publisher': get_publisher(), 'request': get_request(), '__file__': filename}, - local_result, - ) - return local_result.get('template_content') - - def get_theme_directory(theme_id): system_location = os.path.join(get_publisher().data_dir, 'themes', theme_id) local_location = os.path.join(get_publisher().app_dir, 'themes', theme_id)