remove deprecated union and timer types, addressing #1898

This commit is contained in:
Matthew Luckie 2022-02-19 19:17:51 +13:00
parent d77fd8305d
commit 11f8729997
9 changed files with 28 additions and 78 deletions

View file

@ -104,8 +104,6 @@ ZVal::ZVal(ValPtr v, const TypePtr& t)
break;
case TYPE_ERROR:
case TYPE_TIMER:
case TYPE_UNION:
case TYPE_VOID:
reporter->InternalError("bad type in ZVal constructor");
}
@ -185,8 +183,6 @@ ZVal::ZVal(const TypePtr& t)
break;
case TYPE_ERROR:
case TYPE_TIMER:
case TYPE_UNION:
case TYPE_VOID:
reporter->InternalError("bad type in ZVal constructor");
}
@ -275,8 +271,6 @@ ValPtr ZVal::ToVal(const TypePtr& t) const
break;
case TYPE_ERROR:
case TYPE_TIMER:
case TYPE_UNION:
case TYPE_VOID:
default:
v = nullptr;