remove unused fields/args
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointMoveParticipant.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointMoveParticipant.java
index a1380c8..2340b0c 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointMoveParticipant.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointMoveParticipant.java
@@ -159,13 +159,13 @@
if (breakpoint instanceof IJavaWatchpoint) {
return new WatchpointTypeChange((IJavaWatchpoint) breakpoint, destType, originalType);
} else if (breakpoint instanceof IJavaClassPrepareBreakpoint) {
- return new ClassPrepareBreakpointTypeChange((IJavaClassPrepareBreakpoint) breakpoint, destType, originalType);
+ return new ClassPrepareBreakpointTypeChange((IJavaClassPrepareBreakpoint) breakpoint, destType);
} else if (breakpoint instanceof IJavaMethodBreakpoint) {
- return new MethodBreakpointTypeChange((IJavaMethodBreakpoint) breakpoint, destType, originalType);
+ return new MethodBreakpointTypeChange((IJavaMethodBreakpoint) breakpoint, destType);
} else if (breakpoint instanceof IJavaExceptionBreakpoint) {
- return new ExceptionBreakpointTypeChange((IJavaExceptionBreakpoint) breakpoint, destType, originalType);
+ return new ExceptionBreakpointTypeChange((IJavaExceptionBreakpoint) breakpoint, destType);
} else if (breakpoint instanceof IJavaLineBreakpoint) {
- return new LineBreakpointTypeChange((IJavaLineBreakpoint) breakpoint, destType, originalType);
+ return new LineBreakpointTypeChange((IJavaLineBreakpoint) breakpoint, destType);
}
return null;
}
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameFieldParticipant.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameFieldParticipant.java
index 8aecdcc..7e5e06c 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameFieldParticipant.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameFieldParticipant.java
@@ -49,7 +49,7 @@
IType breakpointType = BreakpointUtils.getType(watchpoint);
if (breakpointType != null && originalField.getDeclaringType().equals(breakpointType)) {
IField destField = originalField.getDeclaringType().getField(destFieldName);
- changes.add(new WatchpointFieldChange(watchpoint, destField, originalField));
+ changes.add(new WatchpointFieldChange(watchpoint, destField));
}
}
}
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameMethodParticipant.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameMethodParticipant.java
index 0c2424d..40acc3d 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameMethodParticipant.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameMethodParticipant.java
@@ -50,7 +50,7 @@
IType breakpointType = BreakpointUtils.getType(methodBreakpoint);
if (breakpointType != null && originalMethod.getDeclaringType().equals(breakpointType)) {
IMethod destMethod = originalMethod.getDeclaringType().getMethod(destMethodName, originalMethod.getParameterTypes());
- changes.add(new MethodBreakpointMethodChange(methodBreakpoint, destMethod, originalMethod));
+ changes.add(new MethodBreakpointMethodChange(methodBreakpoint, destMethod));
}
}
}
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameParticipant.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameParticipant.java
index d352b8c..d1320e6 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameParticipant.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/BreakpointRenameParticipant.java
@@ -145,13 +145,13 @@
if (breakpoint instanceof IJavaWatchpoint) {
return new WatchpointTypeChange((IJavaWatchpoint) breakpoint, destType, originalType);
} else if (breakpoint instanceof IJavaClassPrepareBreakpoint) {
- return new ClassPrepareBreakpointTypeChange((IJavaClassPrepareBreakpoint) breakpoint, destType, originalType);
+ return new ClassPrepareBreakpointTypeChange((IJavaClassPrepareBreakpoint) breakpoint, destType);
} else if (breakpoint instanceof IJavaMethodBreakpoint) {
- return new MethodBreakpointTypeChange((IJavaMethodBreakpoint) breakpoint, destType, originalType);
+ return new MethodBreakpointTypeChange((IJavaMethodBreakpoint) breakpoint, destType);
} else if (breakpoint instanceof IJavaExceptionBreakpoint) {
- return new ExceptionBreakpointTypeChange((IJavaExceptionBreakpoint) breakpoint, destType, originalType);
+ return new ExceptionBreakpointTypeChange((IJavaExceptionBreakpoint) breakpoint, destType);
} else if (breakpoint instanceof IJavaLineBreakpoint) {
- return new LineBreakpointTypeChange((IJavaLineBreakpoint) breakpoint, destType, originalType);
+ return new LineBreakpointTypeChange((IJavaLineBreakpoint) breakpoint, destType);
}
return null;
}
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ClassPrepareBreakpointTypeChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ClassPrepareBreakpointTypeChange.java
index 38c1871..7bc4205 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ClassPrepareBreakpointTypeChange.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ClassPrepareBreakpointTypeChange.java
@@ -29,13 +29,12 @@
*/
public class ClassPrepareBreakpointTypeChange extends ClassPrepareBreakpointChange {
- private IType fDestType, fOriginalType;
+ private IType fDestType;
private int fStart, fEnd;
- public ClassPrepareBreakpointTypeChange(IJavaClassPrepareBreakpoint breakpoint, IType destType, IType originalType) throws CoreException {
+ public ClassPrepareBreakpointTypeChange(IJavaClassPrepareBreakpoint breakpoint, IType destType) throws CoreException {
super(breakpoint);
fDestType = destType;
- fOriginalType = originalType;
fStart = breakpoint.getMarker().getAttribute(IMarker.CHAR_START, -1);
fEnd = breakpoint.getMarker().getAttribute(IMarker.CHAR_END, -1); }
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ExceptionBreakpointTypeChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ExceptionBreakpointTypeChange.java
index fd7eb68..6b199f0 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ExceptionBreakpointTypeChange.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/ExceptionBreakpointTypeChange.java
@@ -29,12 +29,10 @@
public class ExceptionBreakpointTypeChange extends ExceptionBreakpointChange {
private IType fDestType;
- private IType fOriginalType;
- public ExceptionBreakpointTypeChange(IJavaExceptionBreakpoint breakpoint, IType destType, IType originalType) throws CoreException {
+ public ExceptionBreakpointTypeChange(IJavaExceptionBreakpoint breakpoint, IType destType) throws CoreException {
super(breakpoint);
fDestType = destType;
- fOriginalType = originalType;
}
/* (non-Javadoc)
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LineBreakpointTypeChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LineBreakpointTypeChange.java
index 66376bc..27bc7bc 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LineBreakpointTypeChange.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/LineBreakpointTypeChange.java
@@ -29,12 +29,10 @@
public class LineBreakpointTypeChange extends LineBreakpointChange {
private IType fDestType;
- private IType fOriginalType;
- public LineBreakpointTypeChange(IJavaLineBreakpoint breakpoint, IType destType, IType originalType) throws CoreException {
+ public LineBreakpointTypeChange(IJavaLineBreakpoint breakpoint, IType destType) throws CoreException {
super(breakpoint);
fDestType = destType;
- fOriginalType = originalType;
}
/* (non-Javadoc)
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointMethodChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointMethodChange.java
index aa50a0f..87b748e 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointMethodChange.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointMethodChange.java
@@ -28,12 +28,11 @@
*/
public class MethodBreakpointMethodChange extends MethodBreakpointChange {
- private IMethod fDestMethod, fOriginalMethod;
+ private IMethod fDestMethod;
- public MethodBreakpointMethodChange(IJavaMethodBreakpoint breakpoint, IMethod destMethod, IMethod originalMethod) throws CoreException {
+ public MethodBreakpointMethodChange(IJavaMethodBreakpoint breakpoint, IMethod destMethod) throws CoreException {
super(breakpoint);
fDestMethod = destMethod;
- fOriginalMethod = originalMethod;
}
/* (non-Javadoc)
* @see org.eclipse.ltk.core.refactoring.Change#getName()
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointTypeChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointTypeChange.java
index a60194d..84f7fb2 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointTypeChange.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/MethodBreakpointTypeChange.java
@@ -30,12 +30,11 @@
*/
public class MethodBreakpointTypeChange extends MethodBreakpointChange {
- private IType fDestType, fOriginalType;
+ private IType fDestType;
- public MethodBreakpointTypeChange(IJavaMethodBreakpoint breakpoint, IType destType, IType originalType) throws CoreException {
+ public MethodBreakpointTypeChange(IJavaMethodBreakpoint breakpoint, IType destType) throws CoreException {
super(breakpoint);
fDestType = destType;
- fOriginalType = originalType;
}
/* (non-Javadoc)
* @see org.eclipse.ltk.core.refactoring.Change#getName()
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/WatchpointFieldChange.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/WatchpointFieldChange.java
index a44fdc2..590eae7 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/WatchpointFieldChange.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/core/refactoring/WatchpointFieldChange.java
@@ -28,12 +28,11 @@
*/
public class WatchpointFieldChange extends WatchpointChange {
- private IField fDestField, fOriginalField;
+ private IField fDestField;
- public WatchpointFieldChange(IJavaWatchpoint watchpoint, IField destField, IField originalField) throws CoreException {
+ public WatchpointFieldChange(IJavaWatchpoint watchpoint, IField destField) throws CoreException {
super(watchpoint);
fDestField = destField;
- fOriginalField = originalField;
}
/* (non-Javadoc)