Skip to content

Commit 6591626

Browse files
authored
Merge pull request #19135 from CodaFi/no-substitute-for-the-real-deal
[NFC] Drop unused pending substitutions vector
2 parents e356b3e + 14d770e commit 6591626

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

include/swift/Demangling/Demangler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ class Demangler : public NodeFactory {
296296

297297
Vector<NodePointer> NodeStack;
298298
Vector<NodePointer> Substitutions;
299-
Vector<unsigned> PendingSubstitutions;
300299

301300
static const int MaxNumWords = 26;
302301
StringRef Words[MaxNumWords];

lib/Demangling/Demangler.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,12 @@ void CharVector::append(int Number, NodeFactory &Factory) {
377377
void Demangler::clear() {
378378
NodeStack.free();
379379
Substitutions.free();
380-
PendingSubstitutions.free();
381380
NodeFactory::clear();
382381
}
383382

384383
void Demangler::init(StringRef MangledName) {
385384
NodeStack.init(*this, 16);
386385
Substitutions.init(*this, 16);
387-
PendingSubstitutions.init(*this, 4);
388386
NumWords = 0;
389387
Text = MangledName;
390388
Pos = 0;

0 commit comments

Comments
 (0)