Skip to content

Commit

Permalink
Delete long-dead 'throws' code
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Jun 8, 2014
1 parent b9d2d2b commit 053d9da
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/func.c
Expand Up @@ -1225,21 +1225,6 @@ void FuncDeclaration::semantic3(Scope *sc)
if (!inferRetType && f->next->ty == Terror)
return;

#if 0
// Check the 'throws' clause
if (fthrows)
{
for (size_t i = 0; i < fthrows->dim; i++)
{
Type *t = (*fthrows)[i];

t = t->semantic(loc, sc);
if (!t->isClassHandle())
error("can only throw classes, not %s", t->toChars());
}
}
#endif

if (!fbody && inferRetType && !type->nextOf())
{
error("has no function body with return type inference");
Expand Down

0 comments on commit 053d9da

Please sign in to comment.