From: Matthijs Kooijman Date: Mon, 19 Apr 2010 19:45:01 +0000 (+0200) Subject: themes: Remove some unused code. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fwipi.git;a=commitdiff_plain;h=b3fdc992a52066a8a5bd004834445eec6eb70961 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. --- 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: