Skip to content

Commit

Permalink
Merge pull request #3202 from yebblies/deadblock
Browse files Browse the repository at this point in the history
[DDMD] Remove block of dead code
  • Loading branch information
AndrejMitrovic committed Feb 3, 2014
2 parents 8dc7d88 + 46a0e79 commit 1675bd3
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/func.c
Expand Up @@ -393,30 +393,6 @@ void FuncDeclaration::semantic(Scope *sc)
{
goto Ldone;
}
#if 0
// Verify no constructors, destructors, etc.
if (isCtorDeclaration()
//||isDtorDeclaration()
//|| isInvariantDeclaration()
//|| isUnitTestDeclaration()
)
{
error("special member functions not allowed for %ss", sd->kind());
}

if (isInvariantDeclaration())
sd->invs.push(this);

if (!sd->aggNew)
sd->aggNew = isNewDeclaration();

if (isDelete())
{
if (sd->aggDelete)
error("multiple delete's for struct %s", sd->toChars());
sd->aggDelete = (DeleteDeclaration *)(this);
}
#endif
}

id = parent->isInterfaceDeclaration();
Expand Down

0 comments on commit 1675bd3

Please sign in to comment.