# HG changeset patch # User Ludovic Chabant # Date 1464578156 25200 # Node ID f0a3af3fbea23fb2a5a8b366ef5c279ce3c35220 # Parent 234d0c7c02cf9f8e63bde523b016ecc8febef30d internal: Remove unused code. diff -r 234d0c7c02cf -r f0a3af3fbea2 piecrust/templating/jinjaengine.py --- 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)