]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Kill some dead code
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 2 Jan 2017 20:44:30 +0000 (21:44 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 3 Jan 2017 22:45:29 +0000 (23:45 +0100)
jinja2/compiler.py

index fa2c2aeaf055c01d6bb55a82f7a9459260135a73..f600be1ccdeaee247bbb5bd0d587322a768693e4 100644 (file)
@@ -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