mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-22 19:13:35 +00:00
Remove unused
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
iD.format.XML = {
|
||||
decode: function(s) {
|
||||
return s.replace(/>/g,'>').replace(/</g,'<').replace(/"/g,'"');
|
||||
},
|
||||
|
||||
// Generate Changeset XML. Returns a string.
|
||||
changeset: function(tags) {
|
||||
return (new XMLSerializer()).serializeToString(
|
||||
|
||||
@@ -2,12 +2,6 @@ describe('iD.format.XML', function() {
|
||||
var node = iD.Node({ id: 'n-1', type: 'node', loc: [-77, 38] }),
|
||||
way = iD.Way({ id: 'w-1', type: 'way', nodes: [] });
|
||||
|
||||
describe('#decode', function() {
|
||||
it('decodes xml', function() {
|
||||
expect(iD.format.XML.decode('<">')).to.eql('<">');
|
||||
});
|
||||
});
|
||||
|
||||
describe('#osmChange', function() {
|
||||
it('converts change data to XML', function() {
|
||||
var jxon = iD.format.XML.osmChange('jfire', '1234', {created: [node], modified: [way], deleted: []});
|
||||
|
||||
Reference in New Issue
Block a user