1
0
mirror of https://github.com/golang/go synced 2024-09-30 01:24:33 -06:00

runtime: remove unused parameter from bestFitTreap

This code was added recently, and it doesn't seem like the parameter
will be useful in the near future.

Change-Id: I5d64dadb6820c159b588262ab90df2461b5fdf04
Reviewed-on: https://go-review.googlesource.com/39692
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
This commit is contained in:
Daniel Martí 2017-04-06 13:18:45 +01:00 committed by Brad Fitzpatrick
parent 5c359d8083
commit 4e7724b2db

View File

@ -750,13 +750,13 @@ func (h *mheap) isLargeSpan(npages uintptr) bool {
// Allocate a span of exactly npage pages from the treap of large spans.
func (h *mheap) allocLarge(npage uintptr) *mspan {
return bestFitTreap(&h.freelarge, npage, nil)
return bestFitTreap(&h.freelarge, npage)
}
// Search treap for smallest span with >= npage pages.
// If there are multiple smallest spans, select the one
// with the earliest starting address.
func bestFitTreap(treap *mTreap, npage uintptr, best *mspan) *mspan {
func bestFitTreap(treap *mTreap, npage uintptr) *mspan {
return treap.remove(npage)
}