diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-02-12 07:57:00 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-02-12 08:34:02 +0100 |
commit | 477c09043e654bc154fce6e6b013f8f91fb96f05 (patch) | |
tree | 817960342f7b3cbc6fd0b9f7b37d2e7cdeff666f /lldb/source/Commands/CommandCompletions.cpp | |
parent | 33b9f3abd78ffe31e2f468f64d36dbdf75b25d6e (diff) | |
download | llvm-477c09043e654bc154fce6e6b013f8f91fb96f05.zip llvm-477c09043e654bc154fce6e6b013f8f91fb96f05.tar.gz llvm-477c09043e654bc154fce6e6b013f8f91fb96f05.tar.bz2 |
[lldb][NFC] Remove eCustomCompletion mode
It's not used by anyone. Also if something implements its own
completion it could just not call the method instead of having
a parameter that makes the function a no-op.
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r-- | lldb/source/Commands/CommandCompletions.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp index 2ced56f..0e35e0d 100644 --- a/lldb/source/Commands/CommandCompletions.cpp +++ b/lldb/source/Commands/CommandCompletions.cpp @@ -29,7 +29,6 @@ using namespace lldb_private; CommandCompletions::CommonCompletionElement CommandCompletions::g_common_completions[] = { - {eCustomCompletion, nullptr}, {eSourceFileCompletion, CommandCompletions::SourceFiles}, {eDiskFileCompletion, CommandCompletions::DiskFiles}, {eDiskDirectoryCompletion, CommandCompletions::DiskDirectories}, @@ -47,9 +46,6 @@ bool CommandCompletions::InvokeCommonCompletionCallbacks( CompletionRequest &request, SearchFilter *searcher) { bool handled = false; - if (completion_mask & eCustomCompletion) - return false; - for (int i = 0;; i++) { if (g_common_completions[i].type == eNoCompletion) break; |