[Bf-blender-cvs] [a2c8d5b] GPencil_EditStrokes: Code Cleanup: Remove unused defines

Joshua Leung noreply at git.blender.org
Wed Nov 5 00:15:51 CET 2014


Commit: a2c8d5beb23c1325ad042d43d8d2acc00368e830
Author: Joshua Leung
Date:   Wed Nov 5 03:01:38 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rBa2c8d5beb23c1325ad042d43d8d2acc00368e830

Code Cleanup: Remove unused defines

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

M	source/blender/editors/gpencil/gpencil_select.c

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

diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index 681ea75..7065923 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -294,7 +294,6 @@ static bool gp_stroke_do_circle_sel(bGPDstroke *gps, GP_SpaceConversion *gsc,
 static int gpencil_circle_select_exec(bContext *C, wmOperator *op)
 {
 	ScrArea *sa = CTX_wm_area(C);
-	ARegion *ar = CTX_wm_region(C);
 	
 	const int mx = RNA_int_get(op->ptr, "x");
 	const int my = RNA_int_get(op->ptr, "y");
@@ -371,8 +370,6 @@ void GPENCIL_OT_select_circle(wmOperatorType *ot)
 static int gpencil_border_select_exec(bContext *C, wmOperator *op)
 {
 	ScrArea *sa = CTX_wm_area(C);
-	ARegion *ar = CTX_wm_region(C);
-	View2D *v2d = &ar->v2d;
 	
 	const int gesture_mode = RNA_int_get(op->ptr, "gesture_mode");
 	const bool select = (gesture_mode == GESTURE_MODAL_SELECT);
@@ -479,10 +476,6 @@ void GPENCIL_OT_select_border(wmOperatorType *ot)
 static int gpencil_select_exec(bContext *C, wmOperator *op)
 {
 	ScrArea *sa = CTX_wm_area(C);
-	ARegion *ar = CTX_wm_region(C);
-	View2D *v2d = &ar->v2d;
-	
-	Scene *scene = CTX_data_scene(C);
 	
 	/* "radius" is simply a threshold (screen space) to make it easier to test with a tolerance */
 	const float radius = 0.75f * U.widget_unit;




More information about the Bf-blender-cvs mailing list