From f8cad17c7572a5de1effcd74996b6361f93d54a4 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 15 Jul 2013 21:44:30 -0400 Subject: [PATCH] search.js: kill off labels, mapped, update_typeahead() (imported from commit e0320b5315762d1776ef198fe57663ee6b74d7f8) --- zephyr/static/js/search.js | 7 ------- zephyr/static/js/typeahead_helper.js | 1 - 2 files changed, 8 deletions(-) diff --git a/zephyr/static/js/search.js b/zephyr/static/js/search.js index 214c401892..eb2aed5fea 100644 --- a/zephyr/static/js/search.js +++ b/zephyr/static/js/search.js @@ -9,8 +9,6 @@ var cached_table = $('table.focused_table'); var current_search_term; // Data storage for the typeahead -- to go from object to string representation and vice versa. -var labels = []; -var mapped = {}; // to be deprecated var search_object = {}; function get_query(obj) { @@ -97,11 +95,6 @@ function get_label(obj) { } } -exports.update_typeahead = function () { - mapped = {}; - labels = []; // deprecated -}; - function narrow_or_search_for_term(item) { var search_query_box = $("#search_query"); var obj = search_object[item]; diff --git a/zephyr/static/js/typeahead_helper.js b/zephyr/static/js/typeahead_helper.js index 3d92c4f1f7..389b5cf6aa 100644 --- a/zephyr/static/js/typeahead_helper.js +++ b/zephyr/static/js/typeahead_helper.js @@ -12,7 +12,6 @@ exports.autocomplete_needs_update = function (needs_update) { }; exports.update_autocomplete = function () { - search.update_typeahead(); autocomplete_needs_update = false; };