Serialization: Remove some unused code

Previous refactorings introducing GenericEnvironment left
behind some lint.
This commit is contained in:
Slava Pestov
2016-10-12 17:13:44 -07:00
parent 5ab94a6ef0
commit 092a9318ee
5 changed files with 8 additions and 31 deletions

View File

@@ -2240,14 +2240,12 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
bool isImplicit;
unsigned depth;
unsigned index;
ArrayRef<uint64_t> rawInheritedIDs;
decls_block::GenericTypeParamDeclLayout::readRecord(scratch, nameID,
contextID,
isImplicit,
depth,
index,
rawInheritedIDs);
index);
auto DC = ForcedContext ? *ForcedContext : getDeclContext(contextID);
@@ -2264,12 +2262,6 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
if (isImplicit)
genericParam->setImplicit();
auto inherited = ctx.Allocate<TypeLoc>(rawInheritedIDs.size());
for_each(inherited, rawInheritedIDs, [this](TypeLoc &loc, uint64_t rawID) {
loc.setType(getType(rawID));
});
genericParam->setInherited(inherited);
genericParam->setCheckedInheritanceClause();
break;
}