Commit 55a02fd1 by Xavier Antoviaque

Remove dead code

parent 8d1bb9e6
......@@ -9,8 +9,6 @@ import pkg_resources
from django.template import Context, Template
from xblock.fragment import Fragment
# Globals ###########################################################
......@@ -35,12 +33,3 @@ def render_template(template_path, context={}):
template = Template(template_str)
return template.render(Context(context))
def create_fragment(template_path, context={}):
"""
Returns a new fragment, with its HTML content initialized to the evaluated template,
with the provided context
"""
html = render_template(template_path, context=context)
return Fragment(html)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment