diff options
Diffstat (limited to 'fitz/base_memory.c')
-rw-r--r-- | fitz/base_memory.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fitz/base_memory.c b/fitz/base_memory.c index 9847aa76..643c85b6 100644 --- a/fitz/base_memory.c +++ b/fitz/base_memory.c @@ -1,5 +1,4 @@ #include "fitz.h" -#include "except.h" void * fz_malloc(fz_context *ctx, size_t size) @@ -134,13 +133,3 @@ fz_strdup(fz_context *ctx, char *s) memcpy(ns, s, len); return ns; } - -char * -fz_strdup_nothrow(fz_context *ctx, char *s) -{ - int len = strlen(s) + 1; - char *ns = fz_malloc_nothrow(ctx, len); - if (ns != NULL) - memcpy(ns, s, len); - return ns; -} |