From: Ian Lance Taylor Date: Fri, 7 Jun 2013 01:10:42 +0000 (-0700) Subject: runtime: remove unused mid function X-Git-Tag: go1.2rc2~1307 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b6e52ecffa5e6c0673ecfc93837d23fbcf256752;p=gostls13.git runtime: remove unused mid function R=golang-dev, r CC=golang-dev https://golang.org/cl/10036047 --- diff --git a/src/pkg/runtime/extern.go b/src/pkg/runtime/extern.go index 7c5eb5317b..a7451e6630 100644 --- a/src/pkg/runtime/extern.go +++ b/src/pkg/runtime/extern.go @@ -112,9 +112,6 @@ func (f *Func) FileLine(pc uintptr) (file string, line int) { // implemented in symtab.c func funcline_go(*Func, uintptr) (string, int) -// mid returns the current OS thread (m) id. -func mid() uint32 - // SetFinalizer sets the finalizer associated with x to f. // When the garbage collector finds an unreachable block // with an associated finalizer, it clears the association and runs diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index c27d1f5f55..bc9ca50dc7 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -1732,14 +1732,6 @@ runtime·golockedOSThread(bool ret) FLUSH(&ret); } -// for testing of wire, unwire -void -runtime·mid(uint32 ret) -{ - ret = m->id; - FLUSH(&ret); -} - void runtime·NumGoroutine(intgo ret) {