mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Remove HISTORY_SEARCH_TYPE_*_PCRE
These were unused and unimplemented.
This commit is contained in:
parent
89709c3a89
commit
85fba3a316
2 changed files with 1 additions and 11 deletions
|
@ -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);
|
||||
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");
|
||||
}
|
||||
|
|
|
@ -53,11 +53,7 @@ enum history_search_type_t {
|
|||
// Search for commands containing the given glob pattern.
|
||||
HISTORY_SEARCH_TYPE_CONTAINS_GLOB,
|
||||
// Search for commands starting with the given glob pattern.
|
||||
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
|
||||
HISTORY_SEARCH_TYPE_PREFIX_GLOB
|
||||
};
|
||||
|
||||
typedef uint32_t history_identifier_t;
|
||||
|
|
Loading…
Reference in a new issue