Removed match_on_visible_text() in search.js.

It appears to have been unused for a while.

(imported from commit 04a0de9f60484da660a557ad2b9953c00b91c608)
This commit is contained in:
Steve Howell
2013-07-30 17:35:55 -04:00
parent a1531b4247
commit 5590eb21c0

View File

@@ -127,13 +127,6 @@ exports.initialize = function () {
});
};
function match_on_visible_text(row, search_term) {
// You can't select on :visible, since that includes hidden elements that
// take up space.
return row.find(".message_content, .message_header")
.text().toLowerCase().indexOf(search_term) !== -1;
}
exports.focus_search = function () {
// The search bar is not focused yet, but will be.
update_buttons_with_focus(true);