Author: Ronan Lamy <ronan.l...@gmail.com> Branch: Changeset: r71478:d84e526e805a Date: 2014-05-13 01:29 +0100 http://bitbucket.org/pypy/pypy/changeset/d84e526e805a/
Log: kill unused generic_translate_operation diff --git a/rpython/rtyper/rtyper.py b/rpython/rtyper/rtyper.py --- a/rpython/rtyper/rtyper.py +++ b/rpython/rtyper/rtyper.py @@ -589,8 +589,6 @@ classdef = hop.s_result.classdef return rclass.rtype_new_instance(self, classdef, hop.llops) - generic_translate_operation = None - def default_translate_operation(self, hop): raise TyperError("unimplemented operation: '%s'" % hop.spaceop.opname) @@ -688,13 +686,8 @@ def dispatch(self): rtyper = self.rtyper - generic = rtyper.generic_translate_operation - if generic is not None: - res = generic(self) - if res is not None: - return res opname = self.forced_opname or self.spaceop.opname - translate_meth = getattr(rtyper, 'translate_op_'+opname, + translate_meth = getattr(rtyper, 'translate_op_' + opname, rtyper.default_translate_operation) return translate_meth(self) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit