mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #26735 from jrose-apple/heart-healthy
[Serialization] Remove several unnecessary bits of helper logic
This commit is contained in:
@@ -1207,11 +1207,12 @@ ModuleDecl::ReverseFullNameIterator::operator++() {
|
||||
}
|
||||
|
||||
void
|
||||
ModuleDecl::ReverseFullNameIterator::printForward(raw_ostream &out) const {
|
||||
ModuleDecl::ReverseFullNameIterator::printForward(raw_ostream &out,
|
||||
StringRef delim) const {
|
||||
SmallVector<StringRef, 8> elements(*this, {});
|
||||
swift::interleave(swift::reversed(elements),
|
||||
[&out](StringRef next) { out << next; },
|
||||
[&out] { out << '.'; });
|
||||
[&out, delim] { out << delim; });
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user