mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Remove some unneeded variables.
These should theoretically actually slow down the JIT (if very marginally) so performance-wise it's better not to have them.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
.DS_Store
|
||||
.esm-cache
|
||||
.vscode/
|
||||
.idea/
|
||||
/node_modules/
|
||||
/.tx/tmp/
|
||||
npm-debug.log
|
||||
|
||||
@@ -133,7 +133,6 @@ export function actionCircularize(wayId, projection, maxAngle) {
|
||||
var nearAngle = nearNodes[nodeId];
|
||||
var dist = Math.abs(nearAngle - angle);
|
||||
if (dist < min) {
|
||||
dist = min;
|
||||
origNode = origNodes[nodeId];
|
||||
}
|
||||
}
|
||||
@@ -252,7 +251,7 @@ export function actionCircularize(wayId, projection, maxAngle) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//check if central angles are smaller than maxAngle
|
||||
for (i = 0; i<hull.length; i++){
|
||||
actualPoint = hull[i];
|
||||
@@ -266,7 +265,7 @@ export function actionCircularize(wayId, projection, maxAngle) {
|
||||
if (angle > Math.PI){
|
||||
angle = (2*Math.PI - angle);
|
||||
}
|
||||
|
||||
|
||||
if (angle > maxAngle + epsilonAngle) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -210,7 +210,6 @@ export function osmJoinWays(toJoin, graph) {
|
||||
}
|
||||
|
||||
if (!nodes) { // couldn't find a joinable way/member
|
||||
doneSequence = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ export function uiEditMenu(context) {
|
||||
}
|
||||
|
||||
// update
|
||||
buttons = buttonsEnter
|
||||
buttonsEnter
|
||||
.merge(buttons)
|
||||
.classed('disabled', function(d) { return d.disabled(); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user