59982d783b66d2be7d73ef89ab1b6d741a257f7e chmalee Mon May 11 10:12:37 2026 -0700 Remove dead code block pointed out in nightly code review diff --git src/hg/js/utils.js src/hg/js/utils.js index 5fc60b01e86..4c07c1d2ede 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -3989,47 +3989,30 @@ if (!id || id.length === 0) { id = ''; var tr = $( this ).parents('tr.imgOrd'); if ( $(tr).length === 1 ) { var a = /tr_(.*)/.exec($(tr).attr('id')); // voodoo if (a && a[1]) { id = a[1]; } } } if (id.length > 0) { rightClick.currentMapItem = rightClick.makeMapItem(id); if (rightClick.currentMapItem) { rightClick.currentMapItem.href = this.href; rightClick.currentMapItem.title = this.getAttribute("data-tooltip") || this.title; - - // Handle linked features with separate clickmaps for each exon/intron - if ((this.title.indexOf('Exon ') === 0) || (this.title.indexOf('Intron ') === 0)) { - // if the title is Exon ... or Intron ... - // then search for the sibling with the same href - // that has the real title item label - var elem = this.parentNode.firstChild; - while (elem) { - if ((elem.href === this.href) - && !((elem.title.indexOf('Exon ') === 0) || (elem.title.indexOf('Intron ') === 0))) { - rightClick.currentMapItem.title = elem.title; - break; - } - elem = elem.nextSibling; - } - } - } } }, mapItemMouseOut: function () { imageV2.lastTrack = rightClick.currentMapItem; // Just a backup rightClick.currentMapItem = null; }, init: function () { // Make side buttons visible (must also be called when updating rows in the imgTbl). var btns = $("p.btn");