[lldb][NFC] Remove eCustomCompletion mode
authorRaphael Isemann <teemperor@gmail.com>
Wed, 12 Feb 2020 06:57:00 +0000 (07:57 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 12 Feb 2020 07:34:02 +0000 (08:34 +0100)
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.

lldb/source/Commands/CommandCompletions.cpp

index 2ced56f..0e35e0d 100644 (file)
@@ -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;