diff options
-rw-r--r-- | source/blender/blenlib/BLI_scanfill.h | 1 | ||||
-rw-r--r-- | source/blender/blenlib/intern/scanfill.c | 14 | ||||
-rw-r--r-- | source/creator/creator.c | 2 |
3 files changed, 0 insertions, 17 deletions
diff --git a/source/blender/blenlib/BLI_scanfill.h b/source/blender/blenlib/BLI_scanfill.h index 0cbd4ee70b1..21197670640 100644 --- a/source/blender/blenlib/BLI_scanfill.h +++ b/source/blender/blenlib/BLI_scanfill.h @@ -115,7 +115,6 @@ void BLI_scanfill_end(ScanFillContext *sf_ctx); /* These callbacks are needed to make the lib finction properly */ void BLI_setErrorCallBack(void (*f)(const char *)); -void BLI_setInterruptCallBack(int (*f)(void)); #ifdef __cplusplus } diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c index b6a86b86188..873ce302b9c 100644 --- a/source/blender/blenlib/intern/scanfill.c +++ b/source/blender/blenlib/intern/scanfill.c @@ -45,7 +45,6 @@ /* callbacks for errors and interrupts and some goo */ static void (*BLI_localErrorCallBack)(const char *) = NULL; -static int (*BLI_localInterruptCallBack)(void) = NULL; /** * Set a function taking a (char *) as argument to flag errors. If the @@ -58,19 +57,6 @@ void BLI_setErrorCallBack(void (*f)(const char *)) BLI_localErrorCallBack = f; } -/** - * Set a function to be able to interrupt the execution of processing - * in this module. If the function returns true, the execution will - * terminate gracefully. If the callback is not set, interruption is - * not possible. - * \param f The function to use as callback - * \attention used in creator.c - */ -void BLI_setInterruptCallBack(int (*f)(void)) -{ - BLI_localInterruptCallBack = f; -} - /* just flush the error to /dev/null if the error handler is missing */ void callLocalErrorCallBack(const char *msg) { diff --git a/source/creator/creator.c b/source/creator/creator.c index 817bc4fcf60..04882f07cc3 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -1693,6 +1693,4 @@ static void setCallbacks(void) /* BLI_blenlib: */ BLI_setErrorCallBack(error_cb); /* */ -// XXX BLI_setInterruptCallBack(blender_test_break); - } |