]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused parameter from bestFitTreap
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 6 Apr 2017 12:18:45 +0000 (13:18 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 6 Apr 2017 17:20:43 +0000 (17:20 +0000)
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>
src/runtime/mheap.go

index df621549aa66a6d10547e13313d05bc69dded443..d4a939830bc1e3cb4a9290a1af1f1bbaa40767f3 100644 (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)
 }