Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Jun 26, 2020
1 parent c9cb006 commit a841aca
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
func toProfile(s stackCounter, hz int) *profile.Profile {
functionID := uint64(1)
locationID := uint64(1)
line := int64(1)

p := &profile.Profile{}
m := &profile.Mapping{ID: 1, HasFunctions: true}
Expand Down Expand Up @@ -48,8 +47,6 @@ func toProfile(s stackCounter, hz int) *profile.Profile {
p.Location = append(p.Location, location)
sample.Location = append(sample.Location, location)

line++

locationID++
functionID++
}
Expand Down

0 comments on commit a841aca

Please sign in to comment.