This is an automated email from the ASF dual-hosted git repository. struberg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openjpa.git
commit 1f8db2ade4bb46ab42ca1f2602e76545cdaebac2 Author: Mark Struberg <strub...@apache.org> AuthorDate: Tue Jul 25 10:15:31 2023 +0200 OPENJPA-2911 remove unused methods --- .../apache/openjpa/enhance/PCDataGenerator.java | 25 ---------------------- 1 file changed, 25 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCDataGenerator.java b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCDataGenerator.java index df464fc5d..60405ea15 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCDataGenerator.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCDataGenerator.java @@ -19,7 +19,6 @@ package org.apache.openjpa.enhance; import java.util.BitSet; -import java.util.Collection; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; @@ -57,8 +56,6 @@ import serp.bytecode.BCClass; import serp.bytecode.BCMethod; import serp.bytecode.Code; import serp.bytecode.Constants; -import serp.bytecode.Instruction; -import serp.bytecode.JumpInstruction; import serp.bytecode.Project; /** @@ -1291,28 +1288,6 @@ public class PCDataGenerator extends DynamicStorageGenerator { return count; } - /** - * Set the collection of {@link JumpInstruction}s to the given instruction, - * clearing the collection in the process. - */ - protected void setTarget(Instruction ins, Collection<Instruction> jumps) { - for (Instruction jump : jumps) { - ((JumpInstruction) jump).setTarget(ins); - } - jumps.clear(); - } - - /** - * Transform the given array of classes to strings. - */ - private static String[] toStrings(Class<?>[] cls) { - String[] strings = new String[cls.length]; - for (int i = 0; i < strings.length; i++) - strings[i] = cls[i].getName(); - return strings; - } - - /** * Dynamic {@link PCData}s generated will implement this interface * to simplify initialization.