diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-09-25 12:55:30 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-09-25 12:55:30 +0000 |
commit | a62cf507c06515cea9e85eb53d3f0b1744eda5ff (patch) | |
tree | 8e69c378521596f031961c1716d8f096a94e5ea3 /source/Expression | |
parent | aae3a5e2571774b24c6f0fb22fe6f4e9c3e51d57 (diff) | |
download | lldb-a62cf507c06515cea9e85eb53d3f0b1744eda5ff.tar.gz |
[lldb][NFC] Remove CompletionRequest::GetCursorArgument and GetRawLineUntilCursor
They both return the same result as another function (GetCursorArgumentPrefix
and GetRawLine). They were only added because the old API allowed to look
(in theory) behind the cursor position which is no longer possible.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@372861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Expression')
-rw-r--r-- | source/Expression/REPL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Expression/REPL.cpp b/source/Expression/REPL.cpp index 793525134..f7bd86391 100644 --- a/source/Expression/REPL.cpp +++ b/source/Expression/REPL.cpp @@ -453,7 +453,7 @@ void REPL::IOHandlerComplete(IOHandler &io_handler, } // Strip spaces from the line and see if we had only spaces - if (request.GetRawLineUntilCursor().trim().empty()) { + if (request.GetRawLine().trim().empty()) { // Only spaces on this line, so just indent request.AddCompletion(m_indent_str); return; @@ -479,7 +479,7 @@ void REPL::IOHandlerComplete(IOHandler &io_handler, } current_code.append("\n"); - current_code += request.GetRawLineUntilCursor(); + current_code += request.GetRawLine(); StringList matches; int result = CompleteCode(current_code, matches); |