df9591afb1fd9e2342d36124cd18d6f83f2bfce3
larrym
  Fri Jun 29 11:12:46 2012 -0700
remove obsolete code
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 4325bd3..d56a098 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -2866,56 +2866,30 @@
                             data = data + "&";
                         }
                         data = data + this.name + "=" + cmd;
                     }
             }
             });
             if(data.length > 0) {
                 imageV2.navigateInPlace(data, null, false);
             }
             return false;
         } else {
             return true;
         }
     },
 
-    // XXXX delete obsolete jumpButtonOnClick
-
-    jumpButtonOnClick: function () // called from hgTracks.c
-    {   // onClick handler for the "jump" button.
-        // Handles situation where user types a gene name into the gene box and immediately hits the jump button,
-        // expecting the browser to jump to that gene.
-        var gene = $('#suggest').val();
-        var db = getDb();
-        if(gene
-        && gene.length > 0
-        && gene != "gene"
-        && db
-        && $('#positionDisplay').length == 0
-        && (genomePos.getOriginalPos() == genomePos.get() || genomePos.get().length == 0)) {
-            var pos = lookupGene(db, gene);
-            if(pos) {
-                vis.makeTrackVisible($("#suggestTrack").val());
-                genomePos.set(pos, null);
-            } else {
-                // turn this into a full text search.
-                genomePos.set(gene, null);
-            }
-        }
-        return true;
-    },
-
     navigateInPlace: function (params, disabledEle, keepCurrentTrackVisible)
     {
     // request an hgTracks image, using params
     // disabledEle is optional; this element will be enabled when update is complete
     // If keepCurrentTrackVisible is true, we try to maintain relative position of the item under the mouse after the in-place update.
         // Tim thinks we should consider disabling all UI input while we are doing in-place update.
         jQuery('body').css('cursor', 'wait');
         var currentId, currentIdYOffset;
         if(keepCurrentTrackVisible) {
             var item = rightClick.currentMapItem || imageV2.lastTrack;
             if(item) {
                 var top = $(document.getElementById("tr_" + item.id)).position().top;
                 if(top >= $(window).scrollTop()
                 || top < $(window).scrollTop() + $(window).height()) {
                     // don't bother if the item is not currently visible.