From bdf5906d039a27afd7e0b3a927f7157b84bddd83 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 28 Aug 2008 00:03:24 +0000 Subject: no longer serializable and removed unused code --- .../apache/bcel/generic/InstructionFactory.java | 26 ++-------------------- 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'bcel-builder') diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionFactory.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionFactory.java index 07aed8852..8c34b7f88 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionFactory.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionFactory.java @@ -62,11 +62,11 @@ import org.aspectj.apache.bcel.classfile.ConstantPool; * byte code generating backend of a compiler. You can subclass it to * add your own create methods. * - * @version $Id: InstructionFactory.java,v 1.4 2008/05/28 23:52:59 aclement Exp $ + * @version $Id: InstructionFactory.java,v 1.5 2008/08/28 00:03:24 aclement Exp $ * @author M. Dahm * @see Constants */ -public class InstructionFactory implements InstructionConstants, java.io.Serializable { +public class InstructionFactory implements InstructionConstants { protected ClassGen cg; protected ConstantPool cp; @@ -179,28 +179,6 @@ public class InstructionFactory implements InstructionConstants, java.io.Seriali return instruction; } - private static class MethodObject { - Type[] arg_types; - Type result_type; - String[] arg_names; - String class_name; - String name; - int access; - - MethodObject(String c, String n, Type r, Type[] a, int acc) { - class_name = c; - name = n; - result_type = r; - arg_types = a; - access = acc; - } - } - - private InvokeInstruction createInvoke(MethodObject m, short kind) { - return createInvoke(m.class_name, m.name, m.result_type, m.arg_types, kind); - } - - /** Create a field instruction. * * @param class_name name of the accessed class -- cgit v1.2.3