@@ -182,26 +182,6 @@ void ModuleFile::fatal(llvm::Error error) {
182
182
abort ();
183
183
}
184
184
185
- ModuleFile &ModuleFile::getModuleFileForDelayedActions () {
186
- assert (FileContext && " cannot delay actions before associating with a file" );
187
- ModuleDecl *associatedModule = getAssociatedModule ();
188
-
189
- // Check for the common case.
190
- if (associatedModule->getFiles ().size () == 1 )
191
- return *this ;
192
-
193
- for (FileUnit *file : associatedModule->getFiles ())
194
- if (auto *serialized = dyn_cast<SerializedASTFile>(file))
195
- return serialized->File ;
196
-
197
- llvm_unreachable (" should always have FileContext in the list of files" );
198
- }
199
-
200
- void ModuleFile::finishPendingActions () {
201
- assert (&getModuleFileForDelayedActions () == this &&
202
- " wrong module used for delayed actions" );
203
- }
204
-
205
185
static Optional<swift::AccessorKind>
206
186
getActualAccessorKind (uint8_t raw) {
207
187
switch (serialization::AccessorKind (raw)) {
@@ -883,7 +863,6 @@ GenericSignature *ModuleFile::getGenericSignature(
883
863
// Read the generic signature.
884
864
BCOffsetRAII restoreOffset (DeclTypeCursor);
885
865
DeclTypeCursor.JumpToBit (sigOrOffset);
886
- DeserializingEntityRAII deserializingEntity (*this );
887
866
888
867
// Read the parameter types.
889
868
SmallVector<GenericTypeParamType *, 4 > paramTypes;
@@ -959,7 +938,6 @@ ModuleFile::getGenericSignatureOrEnvironment(
959
938
// Read the generic environment.
960
939
BCOffsetRAII restoreOffset (DeclTypeCursor);
961
940
DeclTypeCursor.JumpToBit (bitOffset);
962
- DeserializingEntityRAII deserializingEntity (*this );
963
941
964
942
SmallVector<GenericTypeParamType *, 4 > paramTypes;
965
943
using namespace decls_block ;
@@ -1067,7 +1045,6 @@ SubstitutionMap ModuleFile::getSubstitutionMap(
1067
1045
// Read the substitution map.
1068
1046
BCOffsetRAII restoreOffset (DeclTypeCursor);
1069
1047
DeclTypeCursor.JumpToBit (substitutionsOrOffset);
1070
- DeserializingEntityRAII deserializingEntity (*this );
1071
1048
1072
1049
// Read the substitution map.
1073
1050
auto entry = DeclTypeCursor.advance (AF_DontPopBlockAtEnd);
@@ -4007,7 +3984,6 @@ ModuleFile::getDeclChecked(DeclID DID) {
4007
3984
BCOffsetRAII restoreOffset (DeclTypeCursor);
4008
3985
DeclTypeCursor.JumpToBit (declOrOffset);
4009
3986
4010
- ModuleFile::DeserializingEntityRAII deserializingEntity (*this );
4011
3987
Expected<Decl *> deserialized =
4012
3988
DeclDeserializer (*this , declOrOffset).getDeclCheckedImpl ();
4013
3989
if (!deserialized)
0 commit comments