[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43249] trunk/blender/source/blender: comment unused vars

Campbell Barton ideasman42 at gmail.com
Mon Jan 9 23:18:06 CET 2012


Revision: 43249
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43249
Author:   campbellbarton
Date:     2012-01-09 22:18:04 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
comment unused vars

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/tracking.c
    trunk/blender/source/blender/editors/object/object_vgroup.c
    trunk/blender/source/blender/editors/sound/sound_ops.c
    trunk/blender/source/blender/editors/space_graph/graph_edit.c

Modified: trunk/blender/source/blender/blenkernel/intern/tracking.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/tracking.c	2012-01-09 21:54:13 UTC (rev 43248)
+++ trunk/blender/source/blender/blenkernel/intern/tracking.c	2012-01-09 22:18:04 UTC (rev 43249)
@@ -1064,7 +1064,7 @@
 {
 	ImBuf *tmpibuf;
 	int x, y;
-	int x1, y1, x2, y2, w, h;
+	int x1, y1 /*, x2, y2 */ /* UNUSED */, w, h;
 	float mpos[2];
 
 	copy_v2_v2(mpos, marker->pos);
@@ -1085,8 +1085,11 @@
 
 	x1= x-(int)(w/2.0f);
 	y1= y-(int)(h/2.0f);
+
+#if 0 /* UNUSED */
 	x2= x+(int)(w/2.0f);
 	y2= y+(int)(h/2.0f);
+#endif
 
 	/* dimensions should be odd */
 	tmpibuf= IMB_allocImBuf(w+margin*2, h+margin*2, 32, IB_rect);

Modified: trunk/blender/source/blender/editors/object/object_vgroup.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_vgroup.c	2012-01-09 21:54:13 UTC (rev 43248)
+++ trunk/blender/source/blender/editors/object/object_vgroup.c	2012-01-09 22:18:04 UTC (rev 43249)
@@ -2058,7 +2058,7 @@
 	return (ob && !ob->id.lib && OB_TYPE_SUPPORT_VGROUP(ob->type) && data && !data->lib);
 }
 
-static int vertex_group_poll_edit(bContext *C)
+static int UNUSED_FUNCTION(vertex_group_poll_edit)(bContext *C)
 {
 	Object *ob= ED_object_context(C);
 	ID *data= (ob)? ob->data: NULL;

Modified: trunk/blender/source/blender/editors/sound/sound_ops.c
===================================================================
--- trunk/blender/source/blender/editors/sound/sound_ops.c	2012-01-09 21:54:13 UTC (rev 43248)
+++ trunk/blender/source/blender/editors/sound/sound_ops.c	2012-01-09 22:18:04 UTC (rev 43249)
@@ -365,6 +365,8 @@
 	return WM_operator_filesel(C, op, event);
 }
 
+#ifdef WITH_AUDASPACE
+
 static int sound_mixdown_draw_check_prop(PointerRNA *UNUSED(ptr), PropertyRNA *prop)
 {
 	const char *prop_id= RNA_property_identifier(prop);
@@ -374,7 +376,6 @@
 	);
 }
 
-#ifdef WITH_AUDASPACE
 static void sound_mixdown_draw(bContext *C, wmOperator *op)
 {
 	static EnumPropertyItem pcm_format_items[] = {

Modified: trunk/blender/source/blender/editors/space_graph/graph_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_edit.c	2012-01-09 21:54:13 UTC (rev 43248)
+++ trunk/blender/source/blender/editors/space_graph/graph_edit.c	2012-01-09 22:18:04 UTC (rev 43249)
@@ -1046,6 +1046,8 @@
 	// todo: add props for start/end frames
 }
 
+#ifdef WITH_AUDASPACE
+
 /* ******************** Sound Bake F-Curve Operator *********************** */
 /* This operator bakes the given sound to the selected F-Curves */
 
@@ -1078,7 +1080,6 @@
 
 /* ------------------- */
 
-#ifdef WITH_AUDASPACE
 static int graphkeys_sound_bake_exec(bContext *C, wmOperator *op)
 {
 	bAnimContext ac;



More information about the Bf-blender-cvs mailing list