changeset 31:4604c914f2ab default tip

removed workaround for dmd-bug #5249
author Extrawurst
date Thu, 30 Dec 2010 13:50:40 +0100
parents 34b36b5193af
children
files trunk/tests/ChipmunkDemos/samples/Plink.d trunk/tests/ChipmunkDemos/samples/Tumble.d
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/tests/ChipmunkDemos/samples/Plink.d	Thu Dec 16 00:56:34 2010 +0100
+++ b/trunk/tests/ChipmunkDemos/samples/Plink.d	Thu Dec 30 13:50:40 2010 +0100
@@ -64,8 +64,6 @@
 		cpv(  0, 10),
 		cpv( 15,-15),
 	];
-
-	int foo;
 	
 	// Create the static triangles.
 	foreach(i; 0..9){
@@ -74,8 +72,6 @@
 			cpVect offset;
 			offset.x = (i*80) - 320 + stagger;
 			offset.y = (j*70) - 240;
-			//BUG: crazy fucking dmd codegen bug when optimizing (2.050)
-			foo = i;
 			
 			shape = cpSpaceAddShape(space, cpPolyShapeNew(staticBody, 3, tris.ptr, offset));
 			shape.e = 1.0f; shape.u = 1.0f;
--- a/trunk/tests/ChipmunkDemos/samples/Tumble.d	Thu Dec 16 00:56:34 2010 +0100
+++ b/trunk/tests/ChipmunkDemos/samples/Tumble.d	Thu Dec 30 13:50:40 2010 +0100
@@ -82,15 +82,11 @@
 	// I'm just doing it to demonstrate the cpSpaceRehashStatic() function.
 	staticBody.w = 0.4f;
 	
-	int foo;
 	// Add the bricks.
 	for(int i=0; i<3; i++){
 		for(int j=0; j<7; j++){
 			_body = cpSpaceAddBody(space, cpBodyNew(1.0f, cpMomentForPoly(1.0f, num, verts.ptr, cpvzero)));
 			_body.p = cpv(i*60 - 150, j*30 - 150);
-	
-			//BUG: crazy fucking dmd codegen bug when optimizing (2.050)
-			foo = i+j;
 			
 			shape = cpSpaceAddShape(space, cpPolyShapeNew(_body, num, verts.ptr, cpvzero));
 			shape.e = 0.0f; shape.u = 0.7f;