aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-09 10:08:17 +0100
committergingerBill <bill@gingerbill.org>2018-06-09 10:08:17 +0100
commit49ea9ed7226b68cde2eeea3984d61098df9f22e3 (patch)
treec6c101d298e02f3c0118ccd3dbe1bd1e8bc35953 /src/entity.cpp
parentd7108416c9abca6bd9ebd45ad54c3b3af6829345 (diff)
Entity aliasing clean up
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index b83732c1c..2c0b99931 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -12,7 +12,6 @@ struct DeclInfo;
ENTITY_KIND(Procedure) \
ENTITY_KIND(ProcGroup) \
ENTITY_KIND(Builtin) \
- ENTITY_KIND(Alias) \
ENTITY_KIND(ImportName) \
ENTITY_KIND(LibraryName) \
ENTITY_KIND(Nil) \
@@ -120,9 +119,6 @@ struct Entity {
i32 id;
} Builtin;
struct {
- Entity *base;
- } Alias;
- struct {
String path;
String name;
Scope *scope;
@@ -271,12 +267,6 @@ Entity *alloc_entity_builtin(Scope *scope, Token token, Type *type, i32 id) {
return entity;
}
-Entity *alloc_entity_alias(Scope *scope, Token token, Type *type, Entity *base) {
- Entity *entity = alloc_entity(Entity_Alias, scope, token, type);
- entity->Alias.base = base;
- return entity;
-}
-
Entity *alloc_entity_import_name(Scope *scope, Token token, Type *type,
String path, String name, Scope *import_scope) {
Entity *entity = alloc_entity(Entity_ImportName, scope, token, type);