[Bf-blender-cvs] [c5ecfd526e2] master: Cleanup: Remove unused variable

Antonio Vazquez noreply at git.blender.org
Fri Oct 11 15:51:57 CEST 2019


Commit: c5ecfd526e2abe88bee5e4b2e737578a2158eea5
Author: Antonio Vazquez
Date:   Fri Oct 11 15:50:42 2019 +0200
Branches: master
https://developer.blender.org/rBc5ecfd526e2abe88bee5e4b2e737578a2158eea5

Cleanup: Remove unused variable

===================================================================

M	source/blender/editors/interface/interface_eyedropper_gpencil_color.c

===================================================================

diff --git a/source/blender/editors/interface/interface_eyedropper_gpencil_color.c b/source/blender/editors/interface/interface_eyedropper_gpencil_color.c
index c6df0c9ed7b..02d4596e93c 100644
--- a/source/blender/editors/interface/interface_eyedropper_gpencil_color.c
+++ b/source/blender/editors/interface/interface_eyedropper_gpencil_color.c
@@ -68,7 +68,7 @@ typedef struct EyedropperGPencil {
 } EyedropperGPencil;
 
 /* Helper: Draw status message while the user is running the operator */
-static void eyedropper_gpencil_status_indicators(bContext *C, EyedropperGPencil *UNUSED(eye))
+static void eyedropper_gpencil_status_indicators(bContext *C)
 {
   char msg_str[UI_MAX_DRAW_STR];
   BLI_strncpy(
@@ -268,8 +268,7 @@ static int eyedropper_gpencil_invoke(bContext *C, wmOperator *op, const wmEvent
     /* Add modal temp handler. */
     WM_event_add_modal_handler(C, op);
     /* Status message. */
-    EyedropperGPencil *eye = (EyedropperGPencil *)op->customdata;
-    eyedropper_gpencil_status_indicators(C, eye);
+    eyedropper_gpencil_status_indicators(C);
 
     return OPERATOR_RUNNING_MODAL;
   }



More information about the Bf-blender-cvs mailing list