From 8d4691f8b033ed06e9db109700f4968c25ab34f0 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 14 Jul 1999 16:38:18 +0000 Subject: [PATCH] mergeKill added (which doesn't combine the locals) set unused entries in backing array to null remove fixed (remove local using same slot, even if it differs) git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1071 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/SlotSet.java | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/jode/jode/flow/SlotSet.java b/jode/jode/flow/SlotSet.java index c255cef..949e992 100644 --- a/jode/jode/flow/SlotSet.java +++ b/jode/jode/flow/SlotSet.java @@ -111,13 +111,14 @@ public final class SlotSet extends AbstractSet implements Cloneable { } /** - * Removes a local info from this variable set. + * Removes a slot from this variable set. */ public boolean remove(Object li) { - li = ((LocalInfo) li).getLocalInfo(); + int slot = ((LocalInfo) li).getSlot(); for (int i=0; i