diff options
Diffstat (limited to 'source/fitz/error.c')
-rw-r--r-- | source/fitz/error.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/fitz/error.c b/source/fitz/error.c index f3c5973d..6330b4ec 100644 --- a/source/fitz/error.c +++ b/source/fitz/error.c @@ -184,31 +184,6 @@ void fz_rethrow(fz_context *ctx) throw(ctx); } -void fz_rethrow_message(fz_context *ctx, const char *fmt, ...) -{ - va_list args; - - assert(ctx && ctx->error && ctx->error->errcode >= FZ_ERROR_NONE); - - va_start(args, fmt); - vsnprintf(ctx->error->message, sizeof ctx->error->message, fmt, args); - va_end(args); - - if (ctx->error->errcode != FZ_ERROR_ABORT) - { - fz_flush_warnings(ctx); - fprintf(stderr, "error: %s\n", ctx->error->message); - LOGE("error: %s\n", ctx->error->message); -#ifdef USE_OUTPUT_DEBUG_STRING - OutputDebugStringA("error: "); - OutputDebugStringA(ctx->error->message); - OutputDebugStringA("\n"); -#endif - } - - throw(ctx); -} - void fz_rethrow_if(fz_context *ctx, int err) { assert(ctx && ctx->error && ctx->error->errcode >= FZ_ERROR_NONE); |