df9591afb1fd9e2342d36124cd18d6f83f2bfce3
larrym
  Fri Jun 29 11:12:46 2012 -0700
remove obsolete code
diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js
index dd5892f..b8a7bc5 100644
--- src/hg/js/autocomplete.js
+++ src/hg/js/autocomplete.js
@@ -38,58 +38,30 @@
             callback(eval(suggestCache[key]));
         }
         // warn(request.term);
     }
 }
 
 function handleSuggest(response, status)
 {
     // We seem to get a lot of duplicate requests (especially the first letters of words),
     // so we keep a cache of the suggestions lists we've retreived.
     if(suggestCache != null)
         suggestCache[this.key] = response;
     this.cont(eval(response));
 }
 
-function lookupGene(db, gene)
-{
-// returns coordinates for gene (requires an exact match).
-// Warning: this function does a synchronous ajax call.
-    // first look in our local cache.
-    if(suggestCache && suggestCache[gene]) {
-        var list = eval(suggestCache[gene]);
-        for(var i=0;i<list.length;i++) {
-            if(list[i].value == gene) {
-                return list[i].id;
-            }
-        }
-    }
-    // synchronously get match from the server
-    var str = $.ajax({
-                     url: "../cgi-bin/hgSuggest",
-                     data: "exact=1&db=" + db + "&prefix=" + gene,
-                     async: false
-                 }).responseText;
-    if(str) {
-        var obj = eval(str);
-        if(obj.length == 1) {
-            return obj[0].id;
-        }
-    }
-    return null;
-}
-
 /* suggest (aka gene search)
    Requires three elements on page: positionDisplay (static display), positionInput (input textbox) and position (hidden).
 */
 
 var suggestBox = {
     clearFindMatches: function()
     {
         // clear any hgFind.matches set by a previous user selection (e.g. when user directly edits the search box)
         if($('#hgFindMatches').length)
             $('#hgFindMatches').remove();
     },
 
     updateFindMatches: function(val)
     {
         // highlight genes choosen from suggest list (#6330)