[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57753] trunk/blender/source: remove unused callback

Campbell Barton ideasman42 at gmail.com
Wed Jun 26 05:42:46 CEST 2013


Revision: 57753
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57753
Author:   campbellbarton
Date:     2013-06-26 03:42:45 +0000 (Wed, 26 Jun 2013)
Log Message:
-----------
remove unused callback

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_scanfill.h
    trunk/blender/source/blender/blenlib/intern/scanfill.c
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/blender/blenlib/BLI_scanfill.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_scanfill.h	2013-06-26 02:57:05 UTC (rev 57752)
+++ trunk/blender/source/blender/blenlib/BLI_scanfill.h	2013-06-26 03:42:45 UTC (rev 57753)
@@ -115,7 +115,6 @@
 
 /* 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
 }

Modified: trunk/blender/source/blender/blenlib/intern/scanfill.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/scanfill.c	2013-06-26 02:57:05 UTC (rev 57752)
+++ trunk/blender/source/blender/blenlib/intern/scanfill.c	2013-06-26 03:42:45 UTC (rev 57753)
@@ -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 @@
 	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)
 {

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2013-06-26 02:57:05 UTC (rev 57752)
+++ trunk/blender/source/creator/creator.c	2013-06-26 03:42:45 UTC (rev 57753)
@@ -1693,6 +1693,4 @@
 	/* BLI_blenlib: */
 
 	BLI_setErrorCallBack(error_cb); /* */
-// XXX	BLI_setInterruptCallBack(blender_test_break);
-
 }




More information about the Bf-blender-cvs mailing list