This is an archive of the discontinued LLVM Phabricator instance.

[lit] Remove dead code not referenced, documented or tested anywhere
ClosedPublic

Authored by ldionne on Jun 22 2023, 4:13 AM.

Diff Detail

Event Timeline

ldionne created this revision.Jun 22 2023, 4:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 4:13 AM
Herald added a subscriber: delcypher. · View Herald Transcript
ldionne requested review of this revision.Jun 22 2023, 4:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 4:13 AM

Gentle ping here, this should be an easy one.

yln accepted this revision.Jun 29 2023, 11:41 AM

Do we need to worry about out-of-tree users?

This revision is now accepted and ready to land.Jun 29 2023, 11:41 AM

Do we need to worry about out-of-tree users?

We might, but do we have a way to know about those? At the very least this isn't tested and there's a bunch of TODOs in it, so it seems like it's not something we're super proud of.

Personally, I would remove it and then ask for forgiveness if we break some people (and then I'd probably suggest that these folks should maintain their own copy of this class instead of Lit providing it, unless there's many users that are broken).

I'll go ahead and ship this. If someone notices problems, please ping this review (or even better, ping me on the #libcxx Discord channel if you want to make sure this isn't missed). We'll figure out the path forward in case some out-of-tree folks were relying on this (which I think is unlikely).