mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Remove unused branch and obsolete test
This commit is contained in:
@@ -21,7 +21,6 @@ iD.actions.DeleteWay = function(wayId) {
|
||||
!graph.parentRelations(node).length) {
|
||||
if (!node.hasInterestingTags()) {
|
||||
graph = graph.remove(node);
|
||||
} else {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -38,12 +38,4 @@ describe("iD.actions.DeleteWay", function () {
|
||||
graph = action(iD.Graph([node, way]));
|
||||
expect(graph.entity(node.id)).not.to.be.undefined;
|
||||
});
|
||||
|
||||
it("registers member nodes with interesting tags as POIs", function () {
|
||||
var node = iD.Node({tags: {highway: 'traffic_signals'}}),
|
||||
way = iD.Way({nodes: [node.id]}),
|
||||
action = iD.actions.DeleteWay(way.id),
|
||||
graph = action(iD.Graph([node, way]));
|
||||
expect(graph.entity(node.id)._poi).to.be.ok;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user