summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_manager.cc')
-rw-r--r--src/command_manager.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc
index ef2fef5c..250a5fe4 100644
--- a/src/command_manager.cc
+++ b/src/command_manager.cc
@@ -672,23 +672,4 @@ Completions CommandManager::complete(const Context& context,
return Completions{};
}
-Completions PerArgumentCommandCompleter::operator()(const Context& context,
- CompletionFlags flags,
- CommandParameters params,
- size_t token_to_complete,
- ByteCount pos_in_token)
- const
-{
- if (token_to_complete >= m_completers.size())
- return Completions{};
-
- // it is possible to try to complete a new argument
- kak_assert(token_to_complete <= params.size());
-
- const String& argument = token_to_complete < params.size() ?
- params[token_to_complete] : String();
- return m_completers[token_to_complete](context, flags, argument,
- pos_in_token);
-}
-
}