From e7e9364d23b14aad07d167cea00c2bd54bedfb07 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 31 Jul 2021 00:15:24 +1000 Subject: Cleanup: remove disabled code from property lookup This allowed custom ID-properties to share a name-space with regular properties which won't work well as the names may collide. --- source/blender/makesrna/intern/rna_rna.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'source/blender/makesrna') 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; } -- cgit v1.2.3