Remove HISTORY_SEARCH_TYPE_*_PCRE

These were unused and unimplemented.
This commit is contained in:
ridiculousfish 2018-02-03 14:34:28 -08:00
parent 89709c3a89
commit 85fba3a316
2 changed files with 1 additions and 11 deletions

View file

@ -482,12 +482,6 @@ bool history_item_t::matches_search(const wcstring &term, enum history_search_ty
if (wcpattern2.back() != ANY_STRING) wcpattern2.push_back(ANY_STRING); if (wcpattern2.back() != ANY_STRING) wcpattern2.push_back(ANY_STRING);
return wildcard_match(content_to_match, wcpattern2); return wildcard_match(content_to_match, wcpattern2);
} }
case HISTORY_SEARCH_TYPE_CONTAINS_PCRE: {
abort();
}
case HISTORY_SEARCH_TYPE_PREFIX_PCRE: {
abort();
}
} }
DIE("unexpected history_search_type_t value"); DIE("unexpected history_search_type_t value");
} }

View file

@ -53,11 +53,7 @@ enum history_search_type_t {
// Search for commands containing the given glob pattern. // Search for commands containing the given glob pattern.
HISTORY_SEARCH_TYPE_CONTAINS_GLOB, HISTORY_SEARCH_TYPE_CONTAINS_GLOB,
// Search for commands starting with the given glob pattern. // Search for commands starting with the given glob pattern.
HISTORY_SEARCH_TYPE_PREFIX_GLOB, HISTORY_SEARCH_TYPE_PREFIX_GLOB
// Search for commands containing the given PCRE pattern.
HISTORY_SEARCH_TYPE_CONTAINS_PCRE,
// Search for commands starting with the given PCRE pattern.
HISTORY_SEARCH_TYPE_PREFIX_PCRE
}; };
typedef uint32_t history_identifier_t; typedef uint32_t history_identifier_t;