remove redundant todraw
authorRichard Fairhurst <richard@systemed.net>
Fri, 26 Mar 2010 18:08:05 +0000 (18:08 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 26 Mar 2010 18:08:05 +0000 (18:08 +0000)
net/systemeD/potlatch2/tools/Straighten.as

index 2a3884b..b171c7d 100644 (file)
@@ -29,9 +29,6 @@ package net.systemeD.potlatch2.tools {
                                                     (Math.pow(b.lon-a.lon,2)+Math.pow(b.latp-a.latp,2));
                                        n.setLonLatp(a.lon +u*(b.lon -a.lon ),
                                                     a.latp+u*(b.latp-a.latp));
-                                       for each (var o:Way in n.parentWays) {
-                                               if (todraw.indexOf(o)==-1) { todraw.push(o); }
-                                       }
                                        
                                } else {
                                        // safe to delete