From 1fc93054fafe93774636153f6772d34626be67d8 Mon Sep 17 00:00:00 2001 From: acolyer Date: Tue, 29 Nov 2005 20:47:28 +0000 Subject: [PATCH] elimination of unused variable warning --- weaver/src/org/aspectj/weaver/Shadow.java | 4 ++-- weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/Shadow.java b/weaver/src/org/aspectj/weaver/Shadow.java index 2fa1c1d4d..5de7a60ef 100644 --- a/weaver/src/org/aspectj/weaver/Shadow.java +++ b/weaver/src/org/aspectj/weaver/Shadow.java @@ -255,11 +255,11 @@ public abstract class Shadow { /** A type-safe enum representing the kind of shadows */ public static final class Kind extends TypeSafeEnum { - private boolean argsOnStack; //XXX unused +// private boolean argsOnStack; //XXX unused public Kind(String name, int key, boolean argsOnStack) { super(name, key); - this.argsOnStack = argsOnStack; +// this.argsOnStack = argsOnStack; } public String toLegalJavaIdentifier() { diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java index b6450fc22..bb2b644e2 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java @@ -105,7 +105,7 @@ public final class LazyMethodGen { private int maxLocals; private boolean canInline = true; - private boolean hasExceptionHandlers; +// private boolean hasExceptionHandlers; private boolean isSynthetic = false; @@ -294,7 +294,7 @@ public final class LazyMethodGen { CodeExceptionGen[] exns = gen.getExceptionHandlers(); if (exns != null) { int len = exns.length; - if (len > 0) hasExceptionHandlers = true; + // if (len > 0) hasExceptionHandlers = true; int priority = len - 1; for (int i = 0; i < len; i++, priority--) { CodeExceptionGen exn = exns[i]; @@ -1152,8 +1152,8 @@ public final class LazyMethodGen { // Old implementation, simply: l.add(0,fresh); for (ListIterator iter = l.listIterator(); iter.hasNext();) { ExceptionRange r = (ExceptionRange) iter.next(); - int freal = fresh.getRealStart().getPosition(); - int rreal = r.getRealStart().getPosition(); +// int freal = fresh.getRealStart().getPosition(); +// int rreal = r.getRealStart().getPosition(); if (fresh.getPriority() >= r.getPriority()) { iter.previous(); iter.add(fresh); -- 2.39.5