forked from OSchip/llvm-project
[lldb][NFC] Remove never read member variable IOHandler::m_editing
The last read access to this variable was removed in 2015 in
4446487d71
.
This commit is contained in:
parent
52d89d26aa
commit
3240000546
|
@ -442,8 +442,6 @@ protected:
|
||||||
bool m_multi_line;
|
bool m_multi_line;
|
||||||
bool m_color_prompts;
|
bool m_color_prompts;
|
||||||
bool m_interrupt_exits;
|
bool m_interrupt_exits;
|
||||||
bool m_editing; // Set to true when fetching a line manually (not using
|
|
||||||
// libedit)
|
|
||||||
std::string m_line_buffer;
|
std::string m_line_buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -251,8 +251,7 @@ IOHandlerEditline::IOHandlerEditline(
|
||||||
m_delegate(delegate), m_prompt(), m_continuation_prompt(),
|
m_delegate(delegate), m_prompt(), m_continuation_prompt(),
|
||||||
m_current_lines_ptr(nullptr), m_base_line_number(line_number_start),
|
m_current_lines_ptr(nullptr), m_base_line_number(line_number_start),
|
||||||
m_curr_line_idx(UINT32_MAX), m_multi_line(multi_line),
|
m_curr_line_idx(UINT32_MAX), m_multi_line(multi_line),
|
||||||
m_color_prompts(color_prompts), m_interrupt_exits(true),
|
m_color_prompts(color_prompts), m_interrupt_exits(true) {
|
||||||
m_editing(false) {
|
|
||||||
SetPrompt(prompt);
|
SetPrompt(prompt);
|
||||||
|
|
||||||
#if LLDB_ENABLE_LIBEDIT
|
#if LLDB_ENABLE_LIBEDIT
|
||||||
|
@ -399,7 +398,6 @@ bool IOHandlerEditline::GetLine(std::string &line, bool &interrupted) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!got_line && in) {
|
if (!got_line && in) {
|
||||||
m_editing = true;
|
|
||||||
while (!got_line) {
|
while (!got_line) {
|
||||||
char *r = fgets(buffer, sizeof(buffer), in);
|
char *r = fgets(buffer, sizeof(buffer), in);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@ -425,7 +423,6 @@ bool IOHandlerEditline::GetLine(std::string &line, bool &interrupted) {
|
||||||
m_line_buffer += buffer;
|
m_line_buffer += buffer;
|
||||||
got_line = SplitLine(m_line_buffer);
|
got_line = SplitLine(m_line_buffer);
|
||||||
}
|
}
|
||||||
m_editing = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (got_line) {
|
if (got_line) {
|
||||||
|
|
Loading…
Reference in New Issue