]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused mid function
authorIan Lance Taylor <iant@golang.org>
Fri, 7 Jun 2013 01:10:42 +0000 (18:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 7 Jun 2013 01:10:42 +0000 (18:10 -0700)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/10036047

src/pkg/runtime/extern.go
src/pkg/runtime/proc.c

index 7c5eb5317baf890b433ea1bfa1428beed45fb3d9..a7451e66302f901aa39c37fb46e45d4a08b81699 100644 (file)
@@ -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
index c27d1f5f55a7b5fc25945181841154cae781ded3..bc9ca50dc79a7d714b58662ee366f470358a63ba 100644 (file)
@@ -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)
 {