mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 21:31:18 +08:00
Remove some dead code
This commit is contained in:
parent
97f1a8fe91
commit
f0a2f24701
|
@ -30,19 +30,6 @@ wildcards using **.
|
|||
#include "expand.h"
|
||||
#include <map>
|
||||
|
||||
/**
|
||||
This flag is set in the flags parameter of wildcard_expand if the
|
||||
call is part of a recursiv wildcard search. It is used to make sure
|
||||
that the contents of subdirectories are only searched once.
|
||||
*/
|
||||
#define WILDCARD_RECURSIVE 64
|
||||
|
||||
/**
|
||||
The maximum length of a filename token. This is a fallback value,
|
||||
an attempt to find the true value using patchconf is always made.
|
||||
*/
|
||||
#define MAX_FILE_LENGTH 1024
|
||||
|
||||
/**
|
||||
Description for generic executable
|
||||
*/
|
||||
|
@ -93,9 +80,6 @@ wildcards using **.
|
|||
*/
|
||||
#define COMPLETE_DIRECTORY_DESC _( L"Directory" )
|
||||
|
||||
/** Hashtable containing all descriptions that describe an executable */
|
||||
static std::map<wcstring, wcstring> suffix_map;
|
||||
|
||||
// Implementation of wildcard_has. Needs to take the length to handle embedded nulls (#1631)
|
||||
static bool wildcard_has_impl(const wchar_t *str, size_t len, bool internal)
|
||||
{
|
||||
|
@ -1231,7 +1215,7 @@ static int wildcard_expand_internal(const wchar_t *wc,
|
|||
|
||||
new_res = wildcard_expand_internal(wcschr(wc, ANY_STRING_RECURSIVE),
|
||||
new_dir.c_str(),
|
||||
flags | WILDCARD_RECURSIVE,
|
||||
flags,
|
||||
out,
|
||||
completion_set,
|
||||
visited_files);
|
||||
|
|
Loading…
Reference in New Issue
Block a user