AST: Remove ArchetypeType::getSelfProtocol()

Now that the last usages have been removed, we no longer need
special handling for the 'Self' archetype of a protocol.
This commit is contained in:
Slava Pestov
2016-11-18 23:52:48 -08:00
parent 0948506cc2
commit 2294e33604
7 changed files with 27 additions and 63 deletions

View File

@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
/// in source control, you should also update the comment to briefly
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
const uint16_t VERSION_MINOR = 283; // Last change: witness markers removed
const uint16_t VERSION_MINOR = 284; // Last change: Self archetype protocol removed
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;
@@ -626,7 +626,7 @@ namespace decls_block {
ARCHETYPE_TYPE,
IdentifierIDField, // name
TypeIDField, // index if primary, parent if non-primary
DeclIDField, // associated type or protocol decl
DeclIDField, // associated type decl
TypeIDField, // superclass
BCArray<DeclIDField> // conformances
// Trailed by the nested types record.