]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused runtime·signame and runtime·newError
authorIan Lance Taylor <iant@golang.org>
Tue, 6 Mar 2012 17:07:00 +0000 (09:07 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 6 Mar 2012 17:07:00 +0000 (09:07 -0800)
R=golang-dev
CC=golang-dev
https://golang.org/cl/5756044

src/pkg/runtime/runtime.h
src/pkg/runtime/signal_plan9_386.c
src/pkg/runtime/signal_unix.c
src/pkg/runtime/thread_windows.c

index f2669fdb7e01382ce73418de8bff12d6ad27acb9..6f5aea11dbf8faa691633c12c9a2d64c22d0f778 100644 (file)
@@ -675,7 +675,6 @@ void        runtime·panicslice(void);
 /*
  * runtime c-called (but written in Go)
  */
-void   runtime·newError(String, Eface*);
 void   runtime·printany(Eface);
 void   runtime·newTypeAssertionError(String*, String*, String*, String*, Eface*);
 void   runtime·newErrorString(String, Eface*);
@@ -706,7 +705,6 @@ float64     runtime·ldexp(float64 d, int32 e);
 float64        runtime·modf(float64 d, float64 *ip);
 void   runtime·semacquire(uint32*);
 void   runtime·semrelease(uint32*);
-String runtime·signame(int32 sig);
 int32  runtime·gomaxprocsfunc(int32 n);
 void   runtime·procyield(uint32);
 void   runtime·osyield(void);
index 5eb04023f48deb6be30fae90c4808168ac9fea5e..d26688516d7246c15fd00e5e15de4c95c2c1ca19 100644 (file)
@@ -4,12 +4,6 @@
 
 #include "runtime.h"
 
-String
-runtime·signame(int32)
-{
-       return runtime·emptystring;
-}
-
 void
 runtime·sigenable(uint32 sig)
 {
index 0b9d2a55a1bbdd910ce6402322d5c5db4612afb6..9b7e8b03a8d5d4b017556c185c7bd1a01c99a5fe 100644 (file)
 
 extern SigTab runtime·sigtab[];
 
-String
-runtime·signame(int32 sig)
-{
-       if(sig < 0 || sig >= NSIG)
-               return runtime·emptystring;
-       return runtime·gostringnocopy((byte*)runtime·sigtab[sig].name);
-}
-
 void
 runtime·initsig(void)
 {
index 8a448bc37c6507bf3c599ee15a84835cf839e05f..1147a05e6a3878eb0cfa376d1f2eb40a782b2691 100644 (file)
@@ -302,21 +302,6 @@ runtime·initsig(void)
        USED(p);
 }
 
-String
-runtime·signame(int32 sig)
-{
-       int8 *s;
-
-       switch(sig) {
-       case SIGINT:
-               s = "SIGINT: interrupt";
-               break;
-       default:
-               return runtime·emptystring;
-       }
-       return runtime·gostringnocopy((byte*)s);
-}
-
 uint32
 runtime·ctrlhandler1(uint32 type)
 {