diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:18:23 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-10-22 21:18:23 +1100 |
| commit | 50917b39ca410feac0f8dbf37b6db408aeedc2b8 (patch) | |
| tree | 7ec723bf865d5a2ab56cb7a98e64aaa5440d959f /src/completion.hh | |
| parent | ca7bc55cf5134b11451ca6b88d9fa0205bbaac66 (diff) | |
Remove now unused CompletionFlags
Since shell-script-completions now runs the script asynchronously
and unconditionally, there is no use for the CompletionFlags::Fast
anymore which means we can remove that type altogether.
Diffstat (limited to 'src/completion.hh')
| -rw-r--r-- | src/completion.hh | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/completion.hh b/src/completion.hh index 78024e19..cef703a2 100644 --- a/src/completion.hh +++ b/src/completion.hh @@ -42,22 +42,12 @@ struct Completions : candidates(std::move(candidates)), start(start), end(end), flags{flags} {} }; -enum class CompletionFlags -{ - None = 0, - Fast = 1 << 0, -}; - -constexpr bool with_bit_ops(Meta::Type<CompletionFlags>) { return true; } - -inline Completions complete_nothing(const Context&, CompletionFlags, - StringView, ByteCount cursor_pos) +inline Completions complete_nothing(const Context&, StringView, ByteCount cursor_pos) { return {cursor_pos, cursor_pos}; } -Completions shell_complete(const Context& context, CompletionFlags, - StringView, ByteCount cursor_pos); +Completions shell_complete(const Context& context, StringView, ByteCount cursor_pos); inline Completions offset_pos(Completions completion, ByteCount offset) { |
