Commit aabbcda8 authored by Ian Lance Taylor's avatar Ian Lance Taylor

runtime: remove unused runtime·signame and runtime·newError

R=golang-dev
CC=golang-dev
https://golang.org/cl/5756044
parent eb2163ff
...@@ -675,7 +675,6 @@ void runtime·panicslice(void); ...@@ -675,7 +675,6 @@ void runtime·panicslice(void);
/* /*
* runtime c-called (but written in Go) * runtime c-called (but written in Go)
*/ */
void runtime·newError(String, Eface*);
void runtime·printany(Eface); void runtime·printany(Eface);
void runtime·newTypeAssertionError(String*, String*, String*, String*, Eface*); void runtime·newTypeAssertionError(String*, String*, String*, String*, Eface*);
void runtime·newErrorString(String, Eface*); void runtime·newErrorString(String, Eface*);
...@@ -706,7 +705,6 @@ float64 runtime·ldexp(float64 d, int32 e); ...@@ -706,7 +705,6 @@ float64 runtime·ldexp(float64 d, int32 e);
float64 runtime·modf(float64 d, float64 *ip); float64 runtime·modf(float64 d, float64 *ip);
void runtime·semacquire(uint32*); void runtime·semacquire(uint32*);
void runtime·semrelease(uint32*); void runtime·semrelease(uint32*);
String runtime·signame(int32 sig);
int32 runtime·gomaxprocsfunc(int32 n); int32 runtime·gomaxprocsfunc(int32 n);
void runtime·procyield(uint32); void runtime·procyield(uint32);
void runtime·osyield(void); void runtime·osyield(void);
......
...@@ -4,12 +4,6 @@ ...@@ -4,12 +4,6 @@
#include "runtime.h" #include "runtime.h"
String
runtime·signame(int32)
{
return runtime·emptystring;
}
void void
runtime·sigenable(uint32 sig) runtime·sigenable(uint32 sig)
{ {
......
...@@ -10,14 +10,6 @@ ...@@ -10,14 +10,6 @@
extern SigTab runtime·sigtab[]; 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 void
runtime·initsig(void) runtime·initsig(void)
{ {
......
...@@ -302,21 +302,6 @@ runtime·initsig(void) ...@@ -302,21 +302,6 @@ runtime·initsig(void)
USED(p); 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 uint32
runtime·ctrlhandler1(uint32 type) runtime·ctrlhandler1(uint32 type)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment