[Patch][gui] java.awt.geom.Area

Michael Koch konqueror@gmx.de
Wed Dec 1 20:44:00 GMT 2004


Hi list,


I just commited the attached patch to remove some unused variables.


Michael


2004-12-01  Michael Koch  <konqueror@gmx.de>

	* java/awt/geom/Area.java
	(QuadSegment.curveArea): Remove unused variables.
	(CubicSegment.curveArea): Likewise.

-------------- next part --------------
Index: java/awt/geom/Area.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/geom/Area.java,v
retrieving revision 1.1.54.3
diff -u -r1.1.54.3 Area.java
--- java/awt/geom/Area.java	16 Nov 2004 10:56:01 -0000	1.1.54.3
+++ java/awt/geom/Area.java	1 Dec 2004 20:39:56 -0000
@@ -2631,11 +2631,9 @@
 
       double P = (y2 - 2 * y1 + y0);
       double Q = 2 * (y1 - y0);
-      double R = y0;
 
       double A = (x2 - 2 * x1 + x0);
       double B = 2 * (x1 - x0);
-      double C = x0;
 
       double area = (B * P - A * Q) / 3.0;
       return (area);
@@ -2937,12 +2935,10 @@
       double P = y3 - 3 * y2 + 3 * y1 - y0;
       double Q = 3 * (y2 + y0 - 2 * y1);
       double R = 3 * (y1 - y0);
-      double S = y0;
 
       double A = x3 - 3 * x2 + 3 * x1 - x0;
       double B = 3 * (x2 + x0 - 2 * x1);
       double C = 3 * (x1 - x0);
-      double D = x0;
 
       double area = (B * P - A * Q) / 5.0 + (C * P - A * R) / 2.0
                     + (C * Q - B * R) / 3.0;


More information about the Java-patches mailing list