[pypy-commit] pypy inline-earlier: kill unused class CanRaise
rlamy
noreply at buildbot.pypy.org
Fri Oct 10 18:41:47 CEST 2014
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: inline-earlier
Changeset: r73893:c602f802c63f
Date: 2014-10-10 05:03 +0100
http://bitbucket.org/pypy/pypy/changeset/c602f802c63f/
Log: kill unused class CanRaise
diff --git a/rpython/translator/backendopt/inline.py b/rpython/translator/backendopt/inline.py
--- a/rpython/translator/backendopt/inline.py
+++ b/rpython/translator/backendopt/inline.py
@@ -15,11 +15,6 @@
pass
-class CanRaise(object):
- def __init__(self, can_raise):
- self.can_raise = can_raise
-
-
def collect_called_graphs(graph, translator):
graphs_or_something = set()
for block in graph.iterblocks():
@@ -126,9 +121,6 @@
if isinstance(graph_or_something, FunctionGraph):
if does_raise_directly(graph_or_something, raise_analyzer):
return True
- elif isinstance(graph_or_something, CanRaise):
- if graph_or_something.can_raise:
- return True
else:
return True # conservatively
for block in from_graph.iterblocks():
More information about the pypy-commit
mailing list