changeset 722:f0a3af3fbea2

internal: Remove unused code.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 29 May 2016 20:15:56 -0700
parents 234d0c7c02cf
children 606f6d57b5df
files piecrust/templating/jinjaengine.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/templating/jinjaengine.py	Sun May 29 20:15:30 2016 -0700
+++ b/piecrust/templating/jinjaengine.py	Sun May 29 20:15:56 2016 -0700
@@ -21,7 +21,7 @@
 from piecrust.routing import CompositeRouteFunction
 from piecrust.templating.base import (TemplateEngine, TemplateNotFoundError,
                                       TemplatingError)
-from piecrust.uriutil import multi_replace, split_sub_uri
+from piecrust.uriutil import multi_replace
 
 
 logger = logging.getLogger(__name__)
@@ -255,7 +255,6 @@
         if cpi is None or cpi.page is None or cpi.render_ctx is None:
             raise Exception("Can't paginate when no page has been pushed "
                             "on the execution stack.")
-        first_uri, _ = split_sub_uri(self.app, cpi.render_ctx.uri)
         return Paginator(cpi.page, value,
                          page_num=cpi.render_ctx.page_num,
                          items_per_page=items_per_page)