mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 10:16:36 +01:00
Remove unused member VarDeclaration::anonDecl.
This commit is contained in:
@@ -860,11 +860,6 @@ void AnonDeclaration::semantic(Scope *sc)
|
||||
VarDeclaration *v = (VarDeclaration *)aad.fields.data[i];
|
||||
|
||||
v->offset += sc->offset;
|
||||
|
||||
#if IN_LLVM
|
||||
if (!v->anonDecl)
|
||||
v->anonDecl = this;
|
||||
#endif
|
||||
ad->fields.push(v);
|
||||
}
|
||||
|
||||
|
||||
@@ -733,9 +733,6 @@ VarDeclaration::VarDeclaration(Loc loc, Type *type, Identifier *id, Initializer
|
||||
#if IN_LLVM
|
||||
aggrIndex = 0;
|
||||
|
||||
// LDC
|
||||
anonDecl = NULL;
|
||||
|
||||
nakedUse = false;
|
||||
|
||||
availableExternally = true; // assume this unless proven otherwise
|
||||
|
||||
@@ -350,9 +350,6 @@ struct VarDeclaration : Declaration
|
||||
/// Override added to set above flag.
|
||||
void semantic3(Scope *sc);
|
||||
|
||||
// FIXME: we're not using these anymore!
|
||||
AnonDeclaration* anonDecl;
|
||||
|
||||
/// This var is used by a naked function.
|
||||
bool nakedUse;
|
||||
|
||||
|
||||
@@ -882,11 +882,6 @@ void AnonDeclaration::semantic(Scope *sc)
|
||||
VarDeclaration *v = aad.fields.tdata()[i];
|
||||
|
||||
v->offset += sc->offset;
|
||||
|
||||
#if IN_LLVM
|
||||
if (!v->anonDecl)
|
||||
v->anonDecl = this;
|
||||
#endif
|
||||
ad->fields.push(v);
|
||||
}
|
||||
|
||||
|
||||
@@ -710,9 +710,6 @@ VarDeclaration::VarDeclaration(Loc loc, Type *type, Identifier *id, Initializer
|
||||
#if IN_LLVM
|
||||
aggrIndex = 0;
|
||||
|
||||
// LDC
|
||||
anonDecl = NULL;
|
||||
|
||||
nakedUse = false;
|
||||
|
||||
availableExternally = true; // assume this unless proven otherwise
|
||||
|
||||
@@ -351,9 +351,6 @@ struct VarDeclaration : Declaration
|
||||
/// Override added to set above flag.
|
||||
void semantic3(Scope *sc);
|
||||
|
||||
// FIXME: we're not using these anymore!
|
||||
AnonDeclaration* anonDecl;
|
||||
|
||||
/// This var is used by a naked function.
|
||||
bool nakedUse;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user