remove unused callback
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -1693,6 +1693,4 @@ static void setCallbacks(void)
|
||||
/* BLI_blenlib: */
|
||||
|
||||
BLI_setErrorCallBack(error_cb); /* */
|
||||
// XXX BLI_setInterruptCallBack(blender_test_break);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user