From 27454060389705f73623d1901489baa1946ae497 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Wed, 23 May 2012 18:28:35 +0200 Subject: [PATCH] removed test code --- openlp/core/lib/serviceitem.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index 037a8df5e..16ab874e3 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -28,7 +28,6 @@ The :mod:`serviceitem` provides the service item functionality including the type and capability of an item. """ -import time import cgi import datetime import logging @@ -39,9 +38,6 @@ from openlp.core.lib import build_icon, clean_tags, expand_tags, translate log = logging.getLogger(__name__) -COUNT = 0 -TIME_ = datetime.timedelta() - class ServiceItemType(object): """ Defines the type of service item @@ -170,7 +166,6 @@ class ServiceItem(object): ``provides_own_theme_data`` """ - start = time.time() log.debug(u'Render called') self._display_frames = [] self.bg_image_bytes = None @@ -202,13 +197,6 @@ class ServiceItem(object): if self.raw_footer is None: self.raw_footer = [] self.foot_text = u'
'.join(filter(None, self.raw_footer)) - global COUNT - COUNT += 1 - global TIME_ - TIME_ += datetime.timedelta(seconds=(time.time() - start)) - print u'%s (average %s)' % ( - unicode(datetime.timedelta(seconds=(time.time() - start))), - unicode(TIME_ / COUNT)) def add_from_image(self, path, title, background=None): """