Skip to content

Commit 7a801c4

Browse files
authored
*: remove redundant lines at the start/end of block (#3773)
1 parent 8e9607a commit 7a801c4

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

‎pkg/internal/gosym/symtab.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ func (T *Table) GetInlineTree(f *Func, goFuncVal, baseaddr uint64, progReader io
140140
//goFuncValue := FuncSymName(strver)
141141
//return T.go12line.InlineTree(f,goFuncValue,baseaddr,progReader)
142142
return T.go12line.InlineTree(f, goFuncVal, baseaddr, progReader)
143-
144143
}
145144
func ProgContaining(elfFile *elf.File, addr uint64) *elf.Prog {
146145
for _, p := range elfFile.Progs {

‎pkg/proc/eval.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,6 @@ func (stack *evalStack) executeOp() {
10391039
} else {
10401040
stack.err = fmt.Errorf("could not find symbol value for %s", op.Name)
10411041
}
1042-
10431042
}
10441043

10451044
case *evalop.PushIdent:

‎pkg/proc/proc_test.go‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6305,7 +6305,6 @@ func TestRangeOverFuncNext(t *testing.T) {
63056305
f, ln2 = currentLineNumber(p, t)
63066306
if ln2 != n {
63076307
t.Fatalf("Program did not continue to correct next location (expected %d) was %s:%d", n, f, ln2)
6308-
63096308
}
63106309
}}
63116310
}
@@ -6365,7 +6364,6 @@ func TestRangeOverFuncNext(t *testing.T) {
63656364
}
63666365

63676366
withTestProcessArgs("rangeoverfunc", t, ".", []string{}, 0, func(p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
6368-
63696367
t.Run("TestTrickyIterAll1", func(t *testing.T) {
63706368
testseq2intl(t, fixture, grp, p, nil, []seqTest{
63716369
funcBreak(t, "main.TestTrickyIterAll"),
@@ -6889,7 +6887,6 @@ func TestRangeOverFuncNextInlined(t *testing.T) {
68896887
}
68906888

68916889
withTestProcessArgs("rangeoverfunc", t, ".", []string{}, protest.EnableInlining, func(p *proc.Target, grp *proc.TargetGroup, fixture protest.Fixture) {
6892-
68936890
t.Run("TestTrickyIterAll1", func(t *testing.T) {
68946891
testseq2intl(t, fixture, grp, p, nil, []seqTest{
68956892
funcBreak(t, "main.TestTrickyIterAll"),

‎service/debugger/debugger.go‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ func (d *Debugger) Restart(rerecord bool, pos string, resetArgs bool, newArgs []
494494

495495
if !resetArgs && (d.config.Stdout.File != nil || d.config.Stderr.File != nil) {
496496
return nil, ErrCanNotRestart
497-
498497
}
499498

500499
if err := d.detach(true); err != nil {
@@ -1547,7 +1546,6 @@ func traverse(t proc.ValidTargets, f *proc.Function, depth int, followCalls int)
15471546
TraceMap[cf.Name] = childnode
15481547
queue = append(queue, childnode)
15491548
}
1550-
15511549
}
15521550
}
15531551
}
@@ -2001,7 +1999,6 @@ func (d *Debugger) convertDefers(defers []*proc.Defer) []api.Defer {
20011999
SP: defers[i].SP,
20022000
}
20032001
}
2004-
20052002
}
20062003

20072004
return r

0 commit comments

Comments
 (0)