From e92d991677b0b313478f7f10757e1081b8835b22 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 12 Feb 2013 11:05:53 -0800 Subject: [PATCH] Remove dead code --- js/id/ui.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/id/ui.js b/js/id/ui.js index 7214628b4..9fec273cd 100644 --- a/js/id/ui.js +++ b/js/id/ui.js @@ -188,14 +188,11 @@ iD.ui = function(context) { }; history.on('change.editor', function() { - var undo = history.undoAnnotation(), redo = history.redoAnnotation(); function refreshTooltip(selection) { - if (selection.property('disabled')) { - selection.call(undo_tooltip.hide); - } else if (selection.property('tooltipVisible')) { + if (selection.property('tooltipVisible')) { selection.call(undo_tooltip.show); } }