From 2743e3a7a3757de5b1cd6478d7463cd1722d4202 Mon Sep 17 00:00:00 2001 From: incastrix Date: Wed, 23 Dec 2009 17:34:17 +0000 Subject: [PATCH 1/1] Refactory: remove unused classes, imports, fields and methods. --- .../debug/core/breakpoints/PHPLineBreakpoint.java | 6 ++-- .../internal/debug/core/model/PHPDebugElement.java | 18 +++++++------- .../internal/debug/core/model/PHPDebugTarget.java | 24 ++++++++++---------- .../phpdt/internal/debug/core/model/PHPThread.java | 12 +++++----- .../debug/core/watch/PHPEvalException.java | 9 ------- 5 files changed, 30 insertions(+), 39 deletions(-) delete mode 100644 net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/watch/PHPEvalException.java diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/breakpoints/PHPLineBreakpoint.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/breakpoints/PHPLineBreakpoint.java index 3196ff8..e7e4673 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/breakpoints/PHPLineBreakpoint.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/breakpoints/PHPLineBreakpoint.java @@ -110,9 +110,9 @@ public class PHPLineBreakpoint extends PHPBreakpoint implements IBreakpoint, /** * Returns the type of marker associated with Java line breakpoints */ - public static String getMarkerType() { - return PHP_LINE_BREAKPOINT; - } +// public static String getMarkerType() { +// return PHP_LINE_BREAKPOINT; +// } public int getHitCount() throws CoreException { return ensureMarker().getAttribute(PHPBreakpoint.HIT_COUNT, 1); diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugElement.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugElement.java index 5cc42ea..971faae 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugElement.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugElement.java @@ -102,9 +102,9 @@ public abstract class PHPDebugElement extends PlatformObject implements /** * Fires a CREATE event for this element. */ - protected void fireCreationEvent() { - fireEvent(new DebugEvent(this, DebugEvent.CREATE)); - } +// protected void fireCreationEvent() { +// fireEvent(new DebugEvent(this, DebugEvent.CREATE)); +// } /** * Fires a RESUME event for this element with the given @@ -113,9 +113,9 @@ public abstract class PHPDebugElement extends PlatformObject implements * @param detail * event detail code */ - public void fireResumeEvent(int detail) { - fireEvent(new DebugEvent(this, DebugEvent.RESUME, detail)); - } +// public void fireResumeEvent(int detail) { +// fireEvent(new DebugEvent(this, DebugEvent.RESUME, detail)); +// } /** * Fires a SUSPEND event for this element with the given @@ -124,9 +124,9 @@ public abstract class PHPDebugElement extends PlatformObject implements * @param detail * event detail code */ - public void fireSuspendEvent(int detail) { - fireEvent(new DebugEvent(this, DebugEvent.SUSPEND, detail)); - } +// public void fireSuspendEvent(int detail) { +// fireEvent(new DebugEvent(this, DebugEvent.SUSPEND, detail)); +// } /** * Fires a TERMINATE event for this element. diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java index 660623d..41c5a39 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPDebugTarget.java @@ -107,10 +107,10 @@ public class PHPDebugTarget extends PHPDebugElement implements IPHPDebugTarget, fireThreadCreateEvent(phpThread); } - public void updateThreads(PHPThread phpThread) { - fireChangeEvent(); - fireThreadCreateEvent(phpThread); - } +// public void updateThreads(PHPThread phpThread) { +// fireChangeEvent(); +// fireThreadCreateEvent(phpThread); +// } private void fireChangeEvent() { DebugEvent ev = new DebugEvent(this, DebugEvent.CHANGE); @@ -122,14 +122,14 @@ public class PHPDebugTarget extends PHPDebugElement implements IPHPDebugTarget, DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] { ev }); } - protected PHPThread getThreadById(int id) { - for (int i = 0; i < threads.length; i++) { - if (threads[i].getId() == id) { - return threads[i]; - } - } - return null; - } +// protected PHPThread getThreadById(int id) { +// for (int i = 0; i < threads.length; i++) { +// if (threads[i].getId() == id) { +// return threads[i]; +// } +// } +// return null; +// } public IThread[] getThreads() { return threads; diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPThread.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPThread.java index fefd85e..9c94fee 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPThread.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/model/PHPThread.java @@ -101,9 +101,9 @@ public class PHPThread extends PHPDebugElement implements IThread { } } - public int getStackFramesSize () { - return frames.length; - } +// public int getStackFramesSize () { +// return frames.length; +// } public boolean hasStackFrames () { if (frames == null) { @@ -136,9 +136,9 @@ public class PHPThread extends PHPDebugElement implements IThread { return target; } - public void setDebugTarget(PHPDebugTarget target) { - this.target = target; - } +// public void setDebugTarget(PHPDebugTarget target) { +// this.target = target; +// } public ILaunch getLaunch() { return this.getDebugTarget().getLaunch(); diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/watch/PHPEvalException.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/watch/PHPEvalException.java deleted file mode 100644 index 52f02be..0000000 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/watch/PHPEvalException.java +++ /dev/null @@ -1,9 +0,0 @@ -package net.sourceforge.phpdt.internal.debug.core.watch; - -public class PHPEvalException extends Exception { - - public PHPEvalException(String s) { - super(s); - } - -} \ No newline at end of file -- 1.7.1