[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35255] trunk/blender/source/blender/ editors: remove unused vars.

Campbell Barton ideasman42 at gmail.com
Mon Feb 28 04:17:53 CET 2011


Revision: 35255
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35255
Author:   campbellbarton
Date:     2011-02-28 03:17:53 +0000 (Mon, 28 Feb 2011)
Log Message:
-----------
remove unused vars.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_action/action_select.c
    trunk/blender/source/blender/editors/space_graph/graph_select.c
    trunk/blender/source/blender/editors/space_info/info_ops.c
    trunk/blender/source/blender/editors/space_logic/logic_window.c

Modified: trunk/blender/source/blender/editors/space_action/action_select.c
===================================================================
--- trunk/blender/source/blender/editors/space_action/action_select.c	2011-02-28 03:17:20 UTC (rev 35254)
+++ trunk/blender/source/blender/editors/space_action/action_select.c	2011-02-28 03:17:53 UTC (rev 35255)
@@ -1157,9 +1157,7 @@
 static int actkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *event)
 {
 	bAnimContext ac;
-	Scene *scene;
 	ARegion *ar;
-	View2D *v2d;
 	short selectmode, column;
 	int mval[2];
 	
@@ -1168,9 +1166,7 @@
 		return OPERATOR_CANCELLED;
 		
 	/* get useful pointers from animation context data */
-	scene= ac.scene;
 	ar= ac.ar;
-	v2d= &ar->v2d;
 	
 	/* get mouse coordinates (in region coordinates) */
 	mval[0]= (event->x - ar->winrct.xmin);

Modified: trunk/blender/source/blender/editors/space_graph/graph_select.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_select.c	2011-02-28 03:17:20 UTC (rev 35254)
+++ trunk/blender/source/blender/editors/space_graph/graph_select.c	2011-02-28 03:17:53 UTC (rev 35255)
@@ -1299,9 +1299,7 @@
 static int graphkeys_clickselect_invoke(bContext *C, wmOperator *op, wmEvent *event)
 {
 	bAnimContext ac;
-	Scene *scene;
 	ARegion *ar;
-	View2D *v2d;
 	short selectmode;
 	int mval[2];
 	
@@ -1310,9 +1308,7 @@
 		return OPERATOR_CANCELLED;
 	
 	/* get useful pointers from animation context data */
-	scene= ac.scene;
 	ar= ac.ar;
-	v2d= &ar->v2d;
 	
 	/* get mouse coordinates (in region coordinates) */
 	mval[0]= (event->x - ar->winrct.xmin);

Modified: trunk/blender/source/blender/editors/space_info/info_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_info/info_ops.c	2011-02-28 03:17:20 UTC (rev 35254)
+++ trunk/blender/source/blender/editors/space_info/info_ops.c	2011-02-28 03:17:53 UTC (rev 35255)
@@ -257,10 +257,6 @@
 
 static int report_missing_files_exec(bContext *UNUSED(C), wmOperator *op)
 {
-	char txtname[24]; /* text block name */
-
-	txtname[0] = '\0';
-	
 	/* run the missing file check */
 	checkMissingFiles(G.main, op->reports);
 	

Modified: trunk/blender/source/blender/editors/space_logic/logic_window.c
===================================================================
--- trunk/blender/source/blender/editors/space_logic/logic_window.c	2011-02-28 03:17:20 UTC (rev 35254)
+++ trunk/blender/source/blender/editors/space_logic/logic_window.c	2011-02-28 03:17:53 UTC (rev 35255)
@@ -3183,9 +3183,9 @@
 static int is_sensor_linked(uiBlock *block, bSensor *sens)
 {
 	bController *cont;
-	int i, count;
+	int i;
 
-	for (count=0, i=0; i<sens->totlinks; i++) {
+	for (i=0; i<sens->totlinks; i++) {
 		cont = sens->links[i];
 		if (uiFindInlink(block, cont) != NULL)
 			return 1;




More information about the Bf-blender-cvs mailing list