Remove dead code

This commit is contained in:
gingerBill
2018-06-07 23:52:13 +01:00
parent b136630856
commit d7108416c9
5 changed files with 18 additions and 33 deletions
-9
View File
@@ -24,7 +24,6 @@ enum ExactValueKind {
ExactValue_Pointer,
ExactValue_Compound, // TODO(bill): Is this good enough?
ExactValue_Procedure, // TODO(bill): Is this good enough?
ExactValue_Entity, // TODO(bill): Is this good enough?
ExactValue_Count,
};
@@ -68,8 +67,6 @@ HashKey hash_exact_value(ExactValue v) {
return hash_pointer(v.value_compound);
case ExactValue_Procedure:
return hash_pointer(v.value_procedure);
case ExactValue_Entity:
return hash_pointer(v.value_entity);
}
return hashing_proc(&v, gb_size_of(ExactValue));
@@ -132,12 +129,6 @@ ExactValue exact_value_procedure(AstNode *node) {
return result;
}
ExactValue exact_value_entity(Entity *entity) {
ExactValue result = {ExactValue_Entity};
result.value_entity = entity;
return result;
}
ExactValue exact_value_integer_from_string(String string) {
u64 u = u64_from_string(string);