aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mcache.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-10-09 10:54:22 +0100
committerDaniel Martí <mvdan@mvdan.cc>2017-10-09 20:14:50 +0000
commit6f5ede8bd5faf92053be30eca9999fa16833b2b9 (patch)
treebd732a1122bd64cc7fc4280d7d91c481c6f429e4 /src/runtime/mcache.go
parent3b186db7b4a5cc510e71f90682732eba3df72fd3 (diff)
downloadgo-6f5ede8bd5faf92053be30eca9999fa16833b2b9.tar.gz
go-6f5ede8bd5faf92053be30eca9999fa16833b2b9.zip
runtime: remove a few unused params and results
These have never had a use - not even going back to when they were added in C. Change-Id: I143b6902b3bacb1fa83c56c9070a8adb9f61a844 Reviewed-on: https://go-review.googlesource.com/69119 Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/mcache.go')
-rw-r--r--src/runtime/mcache.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/mcache.go b/src/runtime/mcache.go
index 96fb273337..6c24650dac 100644
--- a/src/runtime/mcache.go
+++ b/src/runtime/mcache.go
@@ -104,7 +104,7 @@ func freemcache(c *mcache) {
// Gets a span that has a free object in it and assigns it
// to be the cached span for the given sizeclass. Returns this span.
-func (c *mcache) refill(spc spanClass) *mspan {
+func (c *mcache) refill(spc spanClass) {
_g_ := getg()
_g_.m.locks++
@@ -131,7 +131,6 @@ func (c *mcache) refill(spc spanClass) *mspan {
c.alloc[spc] = s
_g_.m.locks--
- return s
}
func (c *mcache) releaseAll() {