remove unused callback

This commit is contained in:
Campbell Barton
2013-06-26 03:42:45 +00:00
parent 28e14794e7
commit a050ddf279
3 changed files with 0 additions and 17 deletions

View File

@@ -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
}

View File

@@ -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)
{

View File

@@ -1693,6 +1693,4 @@ static void setCallbacks(void)
/* BLI_blenlib: */
BLI_setErrorCallBack(error_cb); /* */
// XXX BLI_setInterruptCallBack(blender_test_break);
}