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 | 7f9ac3372ccb85fbe652276d4081c9c64dfb3836 (patch) | |
| tree | cecbb5ac5a4bf33d0329dc0a31e40c26370b5048 /lldb/source/Expression/REPL.cpp | |
| parent | c00627f4dc9404756d643b0db3c5347455c78e4b (diff) | |
| download | bcm5719-llvm-7f9ac3372ccb85fbe652276d4081c9c64dfb3836.tar.gz bcm5719-llvm-7f9ac3372ccb85fbe652276d4081c9c64dfb3836.zip | |
[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.
llvm-svn: 372861
Diffstat (limited to 'lldb/source/Expression/REPL.cpp')
| -rw-r--r-- | lldb/source/Expression/REPL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/REPL.cpp b/lldb/source/Expression/REPL.cpp index 79352513458..f7bd86391f5 100644 --- a/lldb/source/Expression/REPL.cpp +++ b/lldb/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); |

