Remove unused

This commit is contained in:
John Firebaugh
2013-01-26 21:26:48 -05:00
parent 47ef222f38
commit 76c108fc92
2 changed files with 0 additions and 10 deletions

View File

@@ -1,8 +1,4 @@
iD.format.XML = {
decode: function(s) {
return s.replace(/>/g,'&gt;').replace(/</g,'&lt;').replace(/"/g,'&quot;');
},
// Generate Changeset XML. Returns a string.
changeset: function(tags) {
return (new XMLSerializer()).serializeToString(

View File

@@ -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('&lt;&quot;&gt;');
});
});
describe('#osmChange', function() {
it('converts change data to XML', function() {
var jxon = iD.format.XML.osmChange('jfire', '1234', {created: [node], modified: [way], deleted: []});