mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:29:50 +00:00
[VM/Debugger] Delete Debugger::SetBreakpointAtLine
It is dead code. Breakpoint requests that only have a line number are just handled by passing column_number=-1 to SetBreakpointAtLineCol. TEST=CI Change-Id: I44fb9f805c364edb074bf9cdbd3fcbe3888b3bff Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369160 Reviewed-by: Alexander Aprelev <aam@google.com>
This commit is contained in:
parent
4babb9deb1
commit
539d6b8665
|
@ -2806,21 +2806,6 @@ void Debugger::ResumptionBreakpoint() {
|
|||
}
|
||||
}
|
||||
|
||||
Breakpoint* Debugger::SetBreakpointAtLine(const String& script_url,
|
||||
intptr_t line_number) {
|
||||
// Prevent future tests from calling this function in the wrong
|
||||
// execution state. If you hit this assert, consider using
|
||||
// Dart_SetBreakpoint instead.
|
||||
ASSERT(Thread::Current()->execution_state() == Thread::kThreadInVM);
|
||||
|
||||
BreakpointLocation* loc =
|
||||
BreakpointLocationAtLineCol(script_url, line_number, -1 /* no column */);
|
||||
if (loc != nullptr) {
|
||||
return loc->AddRepeated(this);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Breakpoint* Debugger::SetBreakpointAtLineCol(const String& script_url,
|
||||
intptr_t line_number,
|
||||
intptr_t column_number) {
|
||||
|
|
|
@ -684,9 +684,6 @@ class Debugger {
|
|||
bool single_shot);
|
||||
Breakpoint* BreakpointAtActivation(const Instance& closure);
|
||||
|
||||
// TODO(turnidge): script_url may no longer be specific enough.
|
||||
Breakpoint* SetBreakpointAtLine(const String& script_url,
|
||||
intptr_t line_number);
|
||||
Breakpoint* SetBreakpointAtLineCol(const String& script_url,
|
||||
intptr_t line_number,
|
||||
intptr_t column_number);
|
||||
|
|
Loading…
Reference in a new issue