diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index b080e572fa2..f714987fc05 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -458,29 +458,6 @@ int rna_builtin_properties_lookup_string(PointerRNA *ptr, const char *key, Point } } } while ((srna = srna->base)); - - /* this was used pre 2.5beta0, now ID property access uses python's - * getitem style access - * - ob["foo"] rather than ob.foo */ -# if 0 - if (ptr->data) { - IDProperty *group, *idp; - - group = RNA_struct_idprops(ptr, 0); - - if (group) { - for (idp = group->data.group.first; idp; idp = idp->next) { - if (STREQ(idp->name, key)) { - propptr.type = &RNA_Property; - propptr.data = idp; - - *r_ptr = propptr; - return true; - } - } - } - } -# endif return false; }