remove some unused code and reduced the scope if some vars (no functional change).

This commit is contained in:
2010-10-05 21:22:33 +00:00
parent de1c5de708
commit 8408997c84
5 changed files with 14 additions and 19 deletions

View File

@@ -3459,10 +3459,9 @@ PyObject *pyrna_param_to_py(PointerRNA *ptr, ParameterList *parms, PropertyRNA *
PyObject *ret;
int type = RNA_property_type(prop);
int flag = RNA_property_flag(prop);
int a;
if(RNA_property_array_check(ptr, prop)) {
int len;
int a, len;
if (flag & PROP_DYNAMIC) {
ParameterDynAlloc *data_alloc= data;