runtime: remove unused runtime·signame and runtime·newError

R=golang-dev
CC=golang-dev
https://golang.org/cl/5756044
This commit is contained in:
Ian Lance Taylor 2012-03-06 09:07:00 -08:00
parent eb2163ffbb
commit aabbcda816
4 changed files with 0 additions and 31 deletions

View 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);

View File

@ -4,12 +4,6 @@
#include "runtime.h"
String
runtime·signame(int32)
{
return runtime·emptystring;
}
void
runtime·sigenable(uint32 sig)
{

View File

@ -10,14 +10,6 @@
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)
{

View 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)
{