From 9201e15595f642a3aa240c1a5a3ddf0a5ed9bcfc Mon Sep 17 00:00:00 2001 From: incastrix Date: Tue, 16 Sep 2008 14:52:45 +0000 Subject: [PATCH] Remove unused methods: net.sourceforge.phpeclipse.xdebug.php.model.XDebugVariable.setStackFrame(XDebugStackFrame frame) and net.sourceforge.phpeclipse.xdebug.php.model.XDebugElement.setDebugTarget(XDebugTarget target) --- .../phpeclipse/xdebug/php/model/XDebugElement.java | 12 ++++-------- .../xdebug/php/model/XDebugVariable.java | 9 ++------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugElement.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugElement.java index 61ba588..c84a976 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugElement.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugElement.java @@ -10,7 +10,7 @@ import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants; //import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.PlatformObject; import org.eclipse.debug.core.DebugEvent; -import org.eclipse.debug.core.DebugException; +//import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.model.IDebugElement; @@ -24,7 +24,7 @@ import org.eclipse.debug.core.model.IDebugTarget; public class XDebugElement extends PlatformObject implements IDebugElement { // containing target - protected XDebugTarget fTarget; + protected/*private*/ XDebugTarget fTarget; /** * Constructs a new debug element contained in the given @@ -53,10 +53,6 @@ public class XDebugElement extends PlatformObject implements IDebugElement { return fTarget; } - public void setDebugTarget(XDebugTarget target) { - fTarget=target; - } - /* (non-Javadoc) * @see org.eclipse.debug.core.model.IDebugElement#getLaunch() */ @@ -73,12 +69,12 @@ public class XDebugElement extends PlatformObject implements IDebugElement { return super.getAdapter(adapter); } - protected void abort(String message, Throwable e) throws DebugException { + //protected void abort(String message, Throwable e) throws DebugException { /* Axel auskommentiert throw new DebugException(new Status(IStatus.ERROR, DebugExamplesPlugin.getDefault().getDescriptor().getUniqueIdentifier(), DebugPlugin.INTERNAL_ERROR, message, e)); */ - } + //} /** * Fires a debug event diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugVariable.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugVariable.java index 9c289a0..d0e9062 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugVariable.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugVariable.java @@ -22,7 +22,7 @@ import org.w3c.dom.Node; * Window - Preferences - Java - Code Style - Code Templates */ public class XDebugVariable extends XDebugElement implements IVariable/*, IWatchExpressionFactoryAdapter*/ { - public static final int VARTYPE_UNKNOWN = -1; + /*public static final int VARTYPE_UNKNOWN = -1; public static final int VARTYPE_UNINITIALIZED = 0; public static final int VARTYPE_STRING = 1; public static final int VARTYPE_INT = 2; @@ -30,7 +30,7 @@ public class XDebugVariable extends XDebugElement implements IVariable/*, IWatc public static final int VARTYPE_ARRAY = 8; public static final int VARTYPE_HASH = 9; public static final int VARTYPE_OBJECT = 10; - public static final int VARTYPE_RESOURCE = 11; + public static final int VARTYPE_RESOURCE = 11;*/ private int fNumChildren; private String fName; @@ -172,11 +172,6 @@ public class XDebugVariable extends XDebugElement implements IVariable/*, IWatc return fFrame; } - public void setStackFrame(XDebugStackFrame frame) { - fFrame = frame; - super.setDebugTarget((XDebugTarget) frame.getDebugTarget()); - } - // public int getType() { // return fType; // } -- 1.7.1