summaryrefslogtreecommitdiff
path: root/source/fitz/error.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-27 17:00:29 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-27 17:01:06 +0200
commit29d53a0a460e00b3ec9dda508adbd2964077ab27 (patch)
tree1576b7808c03324739e56cdae57cd3a92d57b679 /source/fitz/error.c
parent4d9c36cfe000caeaf3dcc79f4ed004e0595975e4 (diff)
downloadmupdf-29d53a0a460e00b3ec9dda508adbd2964077ab27.tar.xz
Fix 696649: remove fz_rethrow_message calls.
Diffstat (limited to 'source/fitz/error.c')
-rw-r--r--source/fitz/error.c25
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);