No longer need to remove dead links

There should be no dead links any more, now that we include
doclets for the whole inheritance chain of a class.
This commit is contained in:
Andreas Hocevar
2014-05-04 18:28:19 -05:00
parent ea5df18c72
commit b444714c55

View File

@@ -23,21 +23,7 @@ function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
function linkto(longname, linkText, cssClass, fragmentId) {
var markup = helper.linkto.apply(this, arguments);
var links = markup.match(/<a [^>]*>[^<]*<\/a>/g);
if (links) {
for (var i = links.length - 1; i >= 0; --i) {
var link = links[i];
var linkLongname = link.match(/<a [^>]*>([^<]*)<\/a>/)[1];
var doclet = find({longname: linkLongname})[0];
if (!doclet) {
markup = markup.replace(link, linkLongname);
}
}
}
return markup;
}
var linkto = helper.linkto;
var htmlsafe = helper.htmlsafe;