From f3e222f5739a13a9e16bb15f0b18bcf6aaeb80c4 Mon Sep 17 00:00:00 2001 From: incastrix Date: Tue, 16 Sep 2008 18:17:28 +0000 Subject: [PATCH 1/1] remove unused constructor. --- .../xdebug/php/model/XDebugArrayValue.java | 14 +----------- .../xdebug/php/model/XDebugBooleanValue.java | 11 +--------- .../xdebug/php/model/XDebugFloatValue.java | 21 +++---------------- .../xdebug/php/model/XDebugIntValue.java | 21 +++---------------- .../xdebug/php/model/XDebugObjectValue.java | 16 ++------------ .../xdebug/php/model/XDebugResourceValue.java | 9 ++----- .../xdebug/php/model/XDebugStringValue.java | 5 ---- .../phpeclipse/xdebug/php/model/XDebugValue.java | 19 ++--------------- 8 files changed, 20 insertions(+), 96 deletions(-) diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java index 3745a14..6ecfd8e 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java @@ -8,15 +8,10 @@ public class XDebugArrayValue extends XDebugAbstractValue { String typeName) { super(variable, varNode, typeName); } - - public XDebugArrayValue(XDebugVariable variable, String typeName) { - super(variable, typeName); - } - public void setType(String typeName) { - fType=XDebugAbstractValue.VALUETYPE_ARRAY; - fTypeName=typeName; + fType = XDebugAbstractValue.VALUETYPE_ARRAY; + fTypeName = typeName; } @@ -33,11 +28,6 @@ public class XDebugArrayValue extends XDebugAbstractValue { } public boolean verifyValue(String expression) { - // TODO Auto-generated method stub return false; } - - /*public String toString() { - return null; - }*/ } diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java index bb37515..e062dfe 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java @@ -9,11 +9,6 @@ public class XDebugBooleanValue extends XDebugAbstractValue { super(variable, varNode, typeName); } - public XDebugBooleanValue(XDebugVariable variable,String typeName) { - super(variable, typeName); - } - - public boolean supportsValueModification() { return true; } @@ -56,8 +51,4 @@ public class XDebugBooleanValue extends XDebugAbstractValue { return true; return false; } - - /*public String toString() { - return null; - }*/ -} +} \ No newline at end of file diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java index 8d9dcd6..7e1dbff 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java @@ -3,30 +3,21 @@ package net.sourceforge.phpeclipse.xdebug.php.model; import org.w3c.dom.Node; public class XDebugFloatValue extends XDebugAbstractValue { - public XDebugFloatValue(XDebugVariable variable, Node varNode,String TypeName) { super(variable, varNode,TypeName); - } - public XDebugFloatValue(XDebugVariable variable,String TypeName) { - super(variable,TypeName); - - } - - public boolean supportsValueModification() { return true; } - public void setType(String typeName) { - fType=XDebugAbstractValue.VALUETYPE_FLOAT; - fTypeName=typeName; + fType = XDebugAbstractValue.VALUETYPE_FLOAT; + fTypeName = typeName; } public void renderValueString(String data) { - fValueString=data; + fValueString = data; } public boolean verifyValue(String expression) { @@ -37,8 +28,4 @@ public class XDebugFloatValue extends XDebugAbstractValue { } return true; } - - /*public String toString() { - return null; - }*/ -} +} \ No newline at end of file diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugIntValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugIntValue.java index af573ea..01b1249 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugIntValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugIntValue.java @@ -3,20 +3,13 @@ package net.sourceforge.phpeclipse.xdebug.php.model; import org.w3c.dom.Node; public class XDebugIntValue extends XDebugAbstractValue { - public XDebugIntValue(XDebugVariable variable, Node varNode,String TypeName) { super(variable, varNode,TypeName); - - } - - public XDebugIntValue(XDebugVariable variable,String TypeName) { - super(variable,TypeName); - } public void setType(String typeName) { - fType=XDebugAbstractValue.VALUETYPE_INT; - fTypeName=typeName; + fType = XDebugAbstractValue.VALUETYPE_INT; + fTypeName = typeName; } public boolean supportsValueModification() { @@ -24,9 +17,8 @@ public class XDebugIntValue extends XDebugAbstractValue { } public void renderValueString(String dataString) { - fValueString=dataString; + fValueString = dataString; } - public boolean verifyValue(String expression) { try { @@ -36,9 +28,4 @@ public class XDebugIntValue extends XDebugAbstractValue { } return true; } - - /*public String toString() { - return null; - }*/ - -} +} \ No newline at end of file diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java index a7fdfca..27c42d2 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java @@ -3,15 +3,14 @@ package net.sourceforge.phpeclipse.xdebug.php.model; import org.w3c.dom.Node; public class XDebugObjectValue extends XDebugAbstractValue { - public XDebugObjectValue(XDebugVariable variable, Node varNode, String typeName) { super(variable, varNode, typeName); } public void setType(String typeName) { - fType=XDebugAbstractValue.VALUETYPE_OBJECT; - fTypeName=typeName; + fType = XDebugAbstractValue.VALUETYPE_OBJECT; + fTypeName = typeName; } @@ -19,17 +18,8 @@ public class XDebugObjectValue extends XDebugAbstractValue { fValueString = data; } - -/* public String toString() { - return "class " + fValueString; - }*/ - /*public String toString() { - return null; - }*/ public boolean verifyValue(String expression) { - // TODO Auto-generated method stub return false; } - -} +} \ No newline at end of file diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugResourceValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugResourceValue.java index 4da322e..c74d74b 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugResourceValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugResourceValue.java @@ -3,13 +3,10 @@ package net.sourceforge.phpeclipse.xdebug.php.model; import org.w3c.dom.Node; public class XDebugResourceValue extends XDebugAbstractValue { - public XDebugResourceValue(XDebugVariable variable, Node varNode, String typeName) { + public XDebugResourceValue(XDebugVariable variable, Node varNode, + String typeName) { super(variable, varNode, typeName); } - - public XDebugResourceValue(XDebugVariable variable, String typeName) { - super(variable, typeName); - } public void setType(String typeName) { fType = XDebugAbstractValue.VALUETYPE_RESOURCE; @@ -23,7 +20,7 @@ public class XDebugResourceValue extends XDebugAbstractValue { public boolean supportsValueModification() { return true; } - + public boolean verifyValue(String expression) { return true; } diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStringValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStringValue.java index 161d9f1..b148bd8 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStringValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStringValue.java @@ -7,11 +7,6 @@ public class XDebugStringValue extends XDebugAbstractValue { String typeName) { super(variable, varNode, typeName); } - - public XDebugStringValue(XDebugVariable variable, String typeName) { - super(variable, typeName); - } - public void setType(String typeName) { fType = XDebugAbstractValue.VALUETYPE_STRING; diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugValue.java index 62f9347..1690a23 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugValue.java @@ -3,25 +3,13 @@ package net.sourceforge.phpeclipse.xdebug.php.model; import org.w3c.dom.Node; public class XDebugValue extends XDebugAbstractValue { - public XDebugValue(XDebugVariable variable, Node varNode, String typeName) { super(variable, varNode, typeName); - // TODO Auto-generated constructor stub - fValueString="uninitialized"; - fType=XDebugAbstractValue.VALUETYPE_UNINITIALIZED; - fTypeName="unknown"; - + fValueString = "uninitialized"; + fType = XDebugAbstractValue.VALUETYPE_UNINITIALIZED; + fTypeName = "unknown"; } - public XDebugValue(XDebugVariable variable, String typeName) { - super(variable, typeName); - fValueString="uninitialized"; - fType=XDebugAbstractValue.VALUETYPE_UNINITIALIZED; - fTypeName="unknown"; - - } - - public void setType(String typeName) { } @@ -31,5 +19,4 @@ public class XDebugValue extends XDebugAbstractValue { public boolean verifyValue(String expression) { return false; } - } -- 1.7.1