This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove unused include from ranges_swap_ranges.h
ClosedPublic

Authored by jloser on Feb 10 2022, 3:15 PM.

Details

Summary

ranges_swap_ranges.h includes <type_traits> but does not seem to require
anything from it. Remove the include.

Diff Detail

Event Timeline

jloser requested review of this revision.Feb 10 2022, 3:15 PM
jloser created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2022, 3:15 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision as: philnik.Feb 10 2022, 3:19 PM

I haven't seen any use, so if CI is OK with it it LGTM.

libcxx/include/__algorithm/ranges_swap_ranges.h
46

You can replace _VSTD with std if you want to in this patch.

Quuxplusone accepted this revision.Feb 10 2022, 3:27 PM

LGTM if it looks good to CI. :)

This revision is now accepted and ready to land.Feb 10 2022, 3:27 PM
jloser added inline comments.Feb 10 2022, 3:28 PM
libcxx/include/__algorithm/ranges_swap_ranges.h
46

Nah, I think that we should s/_VSTD/std in all of ranges in one patch if we're going to do that.

philnik added inline comments.Feb 10 2022, 3:30 PM
libcxx/include/__algorithm/ranges_swap_ranges.h
46

Right, I wanted to make a PR for that 😄 . Thanks for reminding me.

ldionne accepted this revision.Feb 11 2022, 8:32 AM
This revision was landed with ongoing or failed builds.Feb 11 2022, 9:29 AM
This revision was automatically updated to reflect the committed changes.