As discussed in T60481.
There was quite a bit of panel-code that wasn't used at all.
Question: Should the related RNA stuff be removed as well?
Differential D4271
Remove deprecated ghosting code Authored by Jacques Lucke (JacquesLucke) on Jan 28 2019, 3:50 PM. Tags None Subscribers None
Details As discussed in T60481. Question: Should the related RNA stuff be removed as well?
Diff Detail
Event TimelineComment Actions
Yes, or at least put an #if 0 block around it with a comment explaining why it is default. Better to not have broken things in the public API. Comment Actions @Brecht Van Lommel (brecht), in that case I'd prefer to remove it completely, even from other parts of the C code and mark it as deprecated. Is there any reason to keep this code? Comment Actions I don't mind removing it entirely if @Joshua Leung (aligorith) is fine with it. We always have git history. Comment Actions I'm leaning towards completely removing it (i.e. the armature specific ghosting RNA/Py/etc.) IIRC, we don't have any of the actual armature drawing code for ghosting hanging around anymore, so we might as well just get rid of the properties too. Comment Actions
Tell me when I removed too much, feels like I removed everything twice and I don't know why. I'm not sure if the enums for e.g. armature->ghosttype should be removed as well. Comment Actions Hmm... the bAnimViz ones can stay for now. If we restore such functionality, those will be the settings used. The ones on bArmature though are fair game. The version patching stuff (especially converting from bArmature to bAnimViz can be skipped/removed. Comment Actions Is it possible to un-deprecate properties later on? Keeping code for a feature that might be implemented in the future resulted in this amount of unused code in the first place. Personally, I think that the code can be brought back later when it becomes necessary? This is not very complicated code anyway. Comment Actions You can remove the struct members and old versioning code. There is no reason to preserve backwards compatibility for this. I also think it's better to just remove the code and restore it if/when the feature gets implemented again. Comment Actions @Brecht Van Lommel (brecht), you mean removing them instead of marking them as DNA_DEPRECATED? Comment Actions Yes. DNA_DEPRECATED is only needed for backwards compatibility in versioning code, which we do not care about in this case. Comment Actions @Joshua Leung (aligorith), I'll merge this tomorrow if you don't say anything that speaks against it. Comment Actions Overall, I'm happy for this to go ahead.
| ||||||||||