Remove unused function and variables.

This commit is contained in:
Marius Strobl 2005-11-22 14:21:03 +00:00
parent a9fe9149a8
commit 933b731c67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152682

View File

@ -70,13 +70,8 @@ __FBSDID("$FreeBSD$");
MALLOC_DEFINE(M_OFWPROP, "openfirm", "Open Firmware properties");
static ihandle_t stdin;
static ihandle_t stdout;
char *OF_buf;
void ofbcopy(const void *, void *, size_t);
/* Initialiaser */
void
@ -87,7 +82,6 @@ OF_init(int (*openfirm)(void *))
set_openfirm_callback(openfirm);
if ((chosen = OF_finddevice("/chosen")) == -1)
OF_exit();
OF_getprop(chosen, "stdin", &stdin, sizeof(stdin));
OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
}
@ -820,16 +814,3 @@ OF_chain(void *virt, u_int size,
entry(0, 0, openfirmware, arg, len);
}
#endif
void
ofbcopy(const void *src, void *dst, size_t len)
{
const char *sp = src;
char *dp = dst;
if (src == dst)
return;
while (len-- > 0)
*dp++ = *sp++;
}