This is an archive of the discontinued LLVM Phabricator instance.

Remove unused ValueObjectDynamicValue::SetOwningSP & backing ivar
ClosedPublic

Authored by jingham on Oct 27 2021, 4:59 PM.

Details

Summary

This owning_sp has no uses and the ValueObjectDynamicValue already tracks
its ownership through the parent it is passed when made. I can't
find any vestiges of the use of this API, maybe it was from some
earlier design?

Resetting the backing ivar was the only job the destructor did, so I
set that to default as well.

Diff Detail

Event Timeline

jingham requested review of this revision.Oct 27 2021, 4:59 PM
jingham created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 4:59 PM
clayborg accepted this revision.Oct 27 2021, 5:02 PM

I am sure you have checked the Swift codebase as well for any uses. If so LGTM.

This revision is now accepted and ready to land.Oct 27 2021, 5:02 PM