mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-17 19:23:02 +00:00
Remove unused variables
This commit is contained in:
@@ -59,8 +59,7 @@ iD.actions.Orthogonalize = function(wayId, projection) {
|
||||
|
||||
// remove empty nodes on straight sections
|
||||
for (i = 0; i < points.length; i++) {
|
||||
var node = nodes[i],
|
||||
a, b, c, p, q, dotp;
|
||||
var node = nodes[i];
|
||||
|
||||
if (graph.parentWays(node).length > 1 ||
|
||||
graph.parentRelations(node).length ||
|
||||
@@ -69,7 +68,7 @@ iD.actions.Orthogonalize = function(wayId, projection) {
|
||||
continue;
|
||||
}
|
||||
|
||||
dotp = normalizedDotProduct(i, points);
|
||||
var dotp = normalizedDotProduct(i, points);
|
||||
if (dotp < -1 + epsilon) {
|
||||
graph = iD.actions.DeleteNode(nodes[i].id)(graph);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user