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:
teymour-aldridge
2020-10-14 19:00:10 +01:00
parent 6b8384f01d
commit 90d3f59aa6
4 changed files with 4 additions and 5 deletions
+1
View File
@@ -1,6 +1,7 @@
.DS_Store
.esm-cache
.vscode/
.idea/
/node_modules/
/.tx/tmp/
npm-debug.log
+2 -3
View File
@@ -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;
}
-1
View File
@@ -210,7 +210,6 @@ export function osmJoinWays(toJoin, graph) {
}
if (!nodes) { // couldn't find a joinable way/member
doneSequence = true;
break;
}
+1 -1
View File
@@ -126,7 +126,7 @@ export function uiEditMenu(context) {
}
// update
buttons = buttonsEnter
buttonsEnter
.merge(buttons)
.classed('disabled', function(d) { return d.disabled(); });