[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34216] trunk/blender/source/blender/ makesrna/intern/rna_access.c: comment dead code from RNA_pointer_create(), was finding the id pointer type when 'id' was set, but not using it.

Campbell Barton ideasman42 at gmail.com
Mon Jan 10 04:47:04 CET 2011


Revision: 34216
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34216
Author:   campbellbarton
Date:     2011-01-10 03:47:03 +0000 (Mon, 10 Jan 2011)
Log Message:
-----------
comment dead code from RNA_pointer_create(), was finding the id pointer type when 'id' was set, but not using it.
also comment a few unused vars.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_access.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c	2011-01-10 03:30:27 UTC (rev 34215)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c	2011-01-10 03:47:03 UTC (rev 34216)
@@ -126,6 +126,7 @@
 
 void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
 {
+#if 0 /* UNUSED */
 	StructRNA *idtype= NULL;
 
 	if(id) {
@@ -133,6 +134,7 @@
 		tmp.data= id;
 		idtype= rna_ID_refine(&tmp);
 	}
+#endif
 
 	r_ptr->id.data= id;
 	r_ptr->type= type;
@@ -2001,9 +2003,9 @@
 
 void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr_value)
 {
-	IDProperty *idprop;
+	/*IDProperty *idprop;*/
 
-	if((idprop=rna_idproperty_check(&prop, ptr))) {
+	if((/*idprop=*/ rna_idproperty_check(&prop, ptr))) {
 		/* not supported */
 	}
 	else {
@@ -2020,9 +2022,9 @@
 
 void RNA_property_pointer_add(PointerRNA *ptr, PropertyRNA *prop)
 {
-	IDProperty *idprop;
+	/*IDProperty *idprop;*/
 
-	if((idprop=rna_idproperty_check(&prop, ptr))) {
+	if((/*idprop=*/rna_idproperty_check(&prop, ptr))) {
 		/* already exists */
 	}
 	else if(prop->flag & PROP_IDPROPERTY) {
@@ -4189,8 +4191,6 @@
 
 void RNA_parameter_list_begin(ParameterList *parms, ParameterIterator *iter)
 {
-	PropertyType ptype;
-
 	RNA_pointer_create(NULL, &RNA_Function, parms->func, &iter->funcptr);
 
 	iter->parms= parms;
@@ -4201,7 +4201,6 @@
 	if(iter->valid) {
 		iter->size= rna_parameter_size_alloc(iter->parm);
 		iter->data= (((char*)iter->parms->data)+iter->offset);
-		ptype= RNA_property_type(iter->parm);
 	}
 }
 




More information about the Bf-blender-cvs mailing list