mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Remove unused variables and arguments
This commit is contained in:
@@ -36,7 +36,7 @@ iD.actions.Connect = function(nodeIds) {
|
||||
return graph;
|
||||
};
|
||||
|
||||
action.enabled = function(graph) {
|
||||
action.enabled = function() {
|
||||
return nodeIds.length > 1;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ iD.actions.Orthogonalize = function(wayId, projection) {
|
||||
var way = graph.entity(wayId),
|
||||
nodes = graph.childNodes(way),
|
||||
points = nodes.map(function(n) { return projection(n.loc); }),
|
||||
quad_nodes = [],
|
||||
best, i, j;
|
||||
|
||||
var score = squareness();
|
||||
@@ -79,7 +78,7 @@ iD.actions.Orthogonalize = function(wayId, projection) {
|
||||
}
|
||||
|
||||
function subtractPoints(a, b) {
|
||||
return [a[0] - b[0], a[1] - b[1]];
|
||||
return [a[0] - b[0], a[1] - b[1]];
|
||||
}
|
||||
|
||||
function addPoints(a, b) {
|
||||
|
||||
@@ -2,8 +2,7 @@ iD.behavior.Lasso = function(context) {
|
||||
|
||||
var behavior = function(selection) {
|
||||
|
||||
var timeout = null,
|
||||
mouse = null,
|
||||
var mouse = null,
|
||||
lasso;
|
||||
|
||||
function mousedown() {
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
iD.Background = function() {
|
||||
|
||||
var deviceRatio = (window.devicePixelRatio &&
|
||||
window.devicePixelRatio === 2) ? 0.5 : 1;
|
||||
// tileSize = (deviceRatio === 0.5) ? [128,128] : [256,256];
|
||||
var tileSize = [256, 256];
|
||||
|
||||
var tile = d3.geo.tile(),
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
iD.ui.notice = function(selection) {
|
||||
var event = d3.dispatch('zoom'),
|
||||
message = '',
|
||||
notice = {};
|
||||
|
||||
var div = selection.append('div')
|
||||
|
||||
@@ -92,7 +92,7 @@ iD.ui.RadialMenu = function(operations) {
|
||||
}
|
||||
};
|
||||
|
||||
radialMenu.close = function(selection) {
|
||||
radialMenu.close = function() {
|
||||
if (menu) {
|
||||
menu.transition()
|
||||
.attr('opacity', 0)
|
||||
|
||||
Reference in New Issue
Block a user