Remove unused variables and arguments

This commit is contained in:
Tom MacWright
2013-03-05 16:29:23 -05:00
parent 21bd81e890
commit e071c15579
6 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ iD.actions.Connect = function(nodeIds) {
return graph;
};
action.enabled = function(graph) {
action.enabled = function() {
return nodeIds.length > 1;
};
+1 -2
View File
@@ -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) {
+1 -2
View File
@@ -2,8 +2,7 @@ iD.behavior.Lasso = function(context) {
var behavior = function(selection) {
var timeout = null,
mouse = null,
var mouse = null,
lasso;
function mousedown() {
-3
View File
@@ -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
View File
@@ -1,6 +1,5 @@
iD.ui.notice = function(selection) {
var event = d3.dispatch('zoom'),
message = '',
notice = {};
var div = selection.append('div')
+1 -1
View File
@@ -92,7 +92,7 @@ iD.ui.RadialMenu = function(operations) {
}
};
radialMenu.close = function(selection) {
radialMenu.close = function() {
if (menu) {
menu.transition()
.attr('opacity', 0)