Revision: 8430
http://svn.sourceforge.net/foray/?rev=8430&view=rev
Author: victormote
Date: 2006-10-26 15:27:40 -0700 (Thu, 26 Oct 2006)
Log Message:
-----------
Remove unneeded setter method.
Modified Paths:
--------------
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtInteger.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtLength.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtNumber.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtPercentage.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/ExprNumeric.java
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtInteger.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtInteger.java 2006-10-26 20:04:29 UTC (rev 8429)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtInteger.java 2006-10-26 22:27:40 UTC (rev 8430)
@@ -63,10 +63,6 @@
return value;
}
- public void setNumericValue(final double value) {
- this.value = (int) Math.round(value);
- }
-
public DtInteger round() {
return this;
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtLength.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtLength.java 2006-10-26 20:04:29 UTC (rev 8429)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtLength.java 2006-10-26 22:27:40 UTC (rev 8430)
@@ -151,13 +151,6 @@
return this.value;
}
- /**
- * Note that this sets the raw numeric value, without regard to units.
- */
- public void setNumericValue(final double value) {
- this.value = (int) Math.round(value);
- }
-
/** @see ExprNumeric#getLengthPower */
public byte getLengthPower() {
return 1;
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtNumber.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtNumber.java 2006-10-26 20:04:29 UTC (rev 8429)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtNumber.java 2006-10-26 22:27:40 UTC (rev 8430)
@@ -56,10 +56,6 @@
return value;
}
- public void setNumericValue(final double value) {
- this.value = value;
- }
-
public DtInteger round() {
final int integer = (int) Math.round(this.value);
return new DtInteger(integer);
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtPercentage.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtPercentage.java 2006-10-26 20:04:29 UTC (rev 8429)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtPercentage.java 2006-10-26 22:27:40 UTC (rev 8430)
@@ -57,10 +57,6 @@
return value;
}
- public void setNumericValue(final double value) {
- this.value = (float) value;
- }
-
public byte getLengthPower() {
return 0;
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/value/ExprNumeric.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/value/ExprNumeric.java 2006-10-26 20:04:29 UTC (rev 8429)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/value/ExprNumeric.java 2006-10-26 22:27:40 UTC (rev 8430)
@@ -43,14 +43,6 @@
double getNumericValue();
/**
- * Set the numeric value of "this" to <code>value</code>.
- * @param value The value to which the numeric portion of "this" should be
- * set. The implementation must round and/or narrow the value to the
- * appropriate form.
- */
- void setNumericValue(double value);
-
- /**
* Each numeric has a "length power" or a "unit power" (which we think are
* synonymous). This number refers to the number of spatial dimensions that
* in which the number operates. So, a number that has no relationship to
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|