Author: Ronan Lamy <[email protected]>
Branch: framestate
Changeset: r75853:ede92a81f6be
Date: 2015-02-13 09:40 +0000
http://bitbucket.org/pypy/pypy/changeset/ede92a81f6be/
Log: kill dead method
diff --git a/rpython/flowspace/flowcontext.py b/rpython/flowspace/flowcontext.py
--- a/rpython/flowspace/flowcontext.py
+++ b/rpython/flowspace/flowcontext.py
@@ -1123,21 +1123,8 @@
class LoopBlock(FrameBlock):
"""A loop block. Stores the end-of-loop pointer in case of 'break'."""
-
handles = (Break, Continue)
- def handle(self, ctx, unroller):
- if isinstance(unroller, Continue):
- # re-push the loop block without cleaning up the value stack,
- # and jump to the beginning of the loop, stored in the
- # exception's argument
- ctx.blockstack.append(self)
- return unroller.jump_to
- else:
- # jump to the end of the loop
- self.cleanupstack(ctx)
- return self.handler
-
class ExceptBlock(FrameBlock):
"""An try:except: block. Stores the position of the exception handler."""
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit