Skip to content

Commit

Permalink
cmd/compile: remove useless fcount
Browse files Browse the repository at this point in the history
Change-Id: Ibc23b43dc9a7fabb27d7991977b283459f3deae3
Reviewed-on: https://go-review.googlesource.com/c/go/+/333009
Run-TryBot: Keith Randall <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Keith Randall <[email protected]>
Reviewed-by: Matthew Dempsky <[email protected]>
  • Loading branch information
WangLeonard authored and tklauser committed Sep 1, 2021
1 parent ea51e22 commit 5e0f8ed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cmd/compile/internal/noder/noder.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ func LoadPackage(filenames []string) {
// Phase 3: Type check function bodies.
// Don't use range--typecheck can add closures to Target.Decls.
base.Timer.Start("fe", "typecheck", "func")
var fcount int64
for i := 0; i < len(typecheck.Target.Decls); i++ {
if fn, ok := typecheck.Target.Decls[i].(*ir.Func); ok {
if base.Flag.W > 1 {
Expand All @@ -166,7 +165,6 @@ func LoadPackage(filenames []string) {
s := fmt.Sprintf("\nafter typecheck %v", fn)
ir.Dump(s, fn)
}
fcount++
}
}

Expand Down

0 comments on commit 5e0f8ed

Please sign in to comment.