forked from openlp/openlp
removed test code
This commit is contained in:
parent
c15ac3a84e
commit
2745406038
@ -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'<br>'.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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user