Commit 90ec0f4e authored by Robert Knight's avatar Robert Knight

Remove unused `uris` method

parent 36d13ca2
......@@ -77,22 +77,6 @@ export class HTMLMetadata {
return uri;
}
/**
* Returns all uris for the document being annotated
*
* @return {string[]}
*/
uris() {
const metadata = this.getDocumentMetadata();
const uniqueUrls = {};
for (let link of metadata.link) {
if (link.href) {
uniqueUrls[link.href] = true;
}
}
return Object.keys(uniqueUrls);
}
/**
* Return metadata for the current page.
*
......
......@@ -196,11 +196,6 @@ describe('HTMLMetadata', function () {
});
});
it('should have unique uris', function () {
const uris = testDocument.uris();
assert.equal(uris.length, 8);
});
it('uri() returns the canonical uri', function () {
const uri = testDocument.uri();
assert.equal(uri, metadata.link[5].href);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment