From: Armin Ronacher Date: Mon, 2 Jan 2017 20:44:30 +0000 (+0100) Subject: Kill some dead code X-Git-Tag: 2.9~30^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22bb00b2751be1f100716e36a798c3f5726b6622;p=thirdparty%2Fjinja.git Kill some dead code --- diff --git a/jinja2/compiler.py b/jinja2/compiler.py index fa2c2aea..f600be1c 100644 --- a/jinja2/compiler.py +++ b/jinja2/compiler.py @@ -1167,17 +1167,6 @@ class CodeGenerator(NodeVisitor): if outdent_later: self.outdent() - def make_assignment_frame(self, frame): - # toplevel assignments however go into the local namespace and - # the current template's context. We create a copy of the frame - # here and add a set so that the Name visitor can add the assigned - # names here. - if not frame.toplevel: - return frame - assignment_frame = frame.copy() - assignment_frame.toplevel_assignments = set() - return assignment_frame - def export_assigned_vars(self, frame): if not frame.toplevel: return