From b3fdc992a52066a8a5bd004834445eec6eb70961 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 19 Apr 2010 21:45:01 +0200 Subject: [PATCH] themes: Remove some unused code. It seems the plugin interface for theme plugins changed slightly in recent moinmoin versions, so this code is no longer used. --- plugin/theme/__init__.py | 3 --- plugin/theme/extinction.py | 10 ---------- plugin/theme/site.py | 10 ---------- 3 files changed, 23 deletions(-) diff --git a/plugin/theme/__init__.py b/plugin/theme/__init__.py index e4ed3b6..478f386 100644 --- a/plugin/theme/__init__.py +++ b/plugin/theme/__init__.py @@ -1,5 +1,2 @@ # -*- coding: iso-8859-1 -*- -from MoinMoin.util import pysupport - -modules = pysupport.getPackageModules(__file__) diff --git a/plugin/theme/extinction.py b/plugin/theme/extinction.py index e4e3984..22534e6 100644 --- a/plugin/theme/extinction.py +++ b/plugin/theme/extinction.py @@ -9,15 +9,5 @@ from site import SiteTheme class Theme(SiteTheme): - name = "extinction" -def execute(request): - """ - Generate and return a theme object - - @param request: the request object - @rtype: MoinTheme - @return: Theme object - """ - return Theme(request) diff --git a/plugin/theme/site.py b/plugin/theme/site.py index e58d273..19b10bd 100644 --- a/plugin/theme/site.py +++ b/plugin/theme/site.py @@ -184,14 +184,4 @@ class SiteTheme(ThemeBase): # This adds #pagebottom and closes #page return html -def execute(request): - """ - Generate and return a theme object - - @param request: the request object - @rtype: MoinTheme - @return: Theme object - """ - return Theme(request) - # vim: set sw=4 sts=4 expandtab: -- 2.30.2