]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove unused ratep parameter
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 10 Mar 2017 17:07:42 +0000 (17:07 +0000)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Mar 2017 20:46:58 +0000 (20:46 +0000)
Found by github.com/mvdan/unparam.

Change-Id: Iabcdfec2ae42c735aa23210b7183080d750682ca
Reviewed-on: https://go-review.googlesource.com/38030
Reviewed-by: Peter Weinberger <pjw@google.com>
Run-TryBot: Peter Weinberger <pjw@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/mprof.go

index fc06d8dbe758866bd62cbfb0baa4c90840e65aaa..555a3ac2a680b506e4c490cc9a0dde7c67b26a4d 100644 (file)
@@ -298,7 +298,7 @@ func blockevent(cycles int64, skip int) {
                cycles = 1
        }
        if blocksampled(cycles) {
-               saveblockevent(cycles, skip+1, blockProfile, &blockprofilerate)
+               saveblockevent(cycles, skip+1, blockProfile)
        }
 }
 
@@ -310,7 +310,7 @@ func blocksampled(cycles int64) bool {
        return true
 }
 
-func saveblockevent(cycles int64, skip int, which bucketType, ratep *uint64) {
+func saveblockevent(cycles int64, skip int, which bucketType) {
        gp := getg()
        var nstk int
        var stk [maxStack]uintptr
@@ -353,7 +353,7 @@ func mutexevent(cycles int64, skip int) {
        // TODO(pjw): measure impact of always calling fastrand vs using something
        // like malloc.go:nextSample()
        if rate > 0 && int64(fastrand())%rate == 0 {
-               saveblockevent(cycles, skip+1, mutexProfile, &mutexprofilerate)
+               saveblockevent(cycles, skip+1, mutexProfile)
        }
 }