# HG changeset patch # User Thinker K.F. Li # Date 1312264181 -28800 # Node ID 650dcb9c01eef3543cfe1928a63ac311b3be4ccb # Parent 3820379b34e8495fd64a088ece081f139104356a Remove unused code diff -r 3820379b34e8 -r 650dcb9c01ee paraspace/injection.py --- a/paraspace/injection.py Mon Aug 01 22:23:55 2011 +0800 +++ b/paraspace/injection.py Tue Aug 02 13:49:41 2011 +0800 @@ -382,28 +382,6 @@ return opcode, (args[0], args[1], methods_redir[methodidx], args[3], args[4], args[5], args[6]) - methodid = dex.find_methodid_idx(methodidx) - method_typeid = methodid.classIdx - method_typeidx = dex.get_idx_typeid(method_typeid) - if method_typeidx not in types_redir: - method_typeid = dex.find_typeid_idx(method_typeidx - 1) - return opcode, args - - new_method_typeidx = types_redir[method_typeidx] - new_method_typeid = dex.find_typeid_idx(new_method_typeidx) - classdef = dex.find_class_typeid(new_method_typeid) - method_name = DEXFile_linked.get_methodid_name(methodid) - method_proto = methodid.protoIdx - - try: - new_method = dex.find_method_name_proto(method_name, - method_proto, - classdef) - except ValueError: - return opcode, args - new_method_idx = dex.get_idx_method(new_method) - return opcode, (args[0], args[1], new_method_idx, - args[3], args[4], args[5], args[6]) return opcode, args new_op_vectors = [redirect(opcode, args) for opcode, args in op_vectors]