From 65baf361439c709d070bb7fe7491eea935e7ac31 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 29 Jan 2013 13:19:04 -0500 Subject: [PATCH] Remove unused DragWay behavior --- index.html | 1 - js/id/behavior/drag_way.js | 28 ---------------------------- test/index.html | 1 - 3 files changed, 30 deletions(-) delete mode 100644 js/id/behavior/drag_way.js diff --git a/index.html b/index.html index 387f4a0e1..deadb5add 100644 --- a/index.html +++ b/index.html @@ -92,7 +92,6 @@ - diff --git a/js/id/behavior/drag_way.js b/js/id/behavior/drag_way.js deleted file mode 100644 index 6de8ca252..000000000 --- a/js/id/behavior/drag_way.js +++ /dev/null @@ -1,28 +0,0 @@ -iD.behavior.DragWay = function(mode) { - var history = mode.history, - projection = mode.map.projection; - - return iD.behavior.drag() - .delegate('.casing, .stroke, .area') - .filter(function(d) { - return d && d.id === mode.entity.id; - }) - .origin(function(entity) { - return projection(history.graph().entity(entity.nodes[0]).loc); - }) - .on('start', function() { - history.perform( - iD.actions.Noop()); - }) - .on('move', function(entity) { - d3.event.sourceEvent.stopPropagation(); - history.replace( - iD.actions.MoveWay(entity.id, d3.event.delta, projection), - 'moved a way'); - }) - .on('end', function() { - history.replace( - iD.actions.Noop(), - 'moved a way'); - }); -}; diff --git a/test/index.html b/test/index.html index 00dc91ed5..12cf31886 100644 --- a/test/index.html +++ b/test/index.html @@ -86,7 +86,6 @@ -