Remove more unused code.
This commit is contained in:
parent
89829f45be
commit
760e2e3282
2 changed files with 0 additions and 12 deletions
11
misc.c
11
misc.c
|
@ -10,17 +10,6 @@
|
|||
#include "linenoise/linenoise.h"
|
||||
#include "newdb.h"
|
||||
|
||||
void* xmalloc(size_t size)
|
||||
{
|
||||
void* ptr = malloc(size);
|
||||
if (ptr == NULL)
|
||||
{
|
||||
fprintf(stderr, "Out of memory!\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return(ptr);
|
||||
}
|
||||
|
||||
char* xstrdup(const char* s)
|
||||
{
|
||||
char* ptr = strdup(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue