mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 04:13:14 +01:00
Removed obsolete nested context styles.
NChybrid was the only one that didn't instantly trigger a "not implemented" assertion on any code using nested function for a long time, and removing the cruft greatly improves code readability (maintainability is a moot point anyway given its current state).
This commit is contained in:
@@ -807,14 +807,14 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||
|
||||
DtoCreateNestedContext(fd);
|
||||
|
||||
if (fd->vresult && !
|
||||
#if DMDV2
|
||||
if (fd->vresult && fd->vresult->nestedrefs.dim) // FIXME: not sure here :/
|
||||
fd->vresult->nestedrefs.dim // FIXME: not sure here :/
|
||||
#else
|
||||
if (fd->vresult && fd->vresult->nestedref)
|
||||
fd->vresult->nestedref
|
||||
#endif
|
||||
)
|
||||
{
|
||||
DtoNestedInit(fd->vresult);
|
||||
} else if (fd->vresult) {
|
||||
DtoVarDeclaration(fd->vresult);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user