From e5f2430855f4f353e8c815410ea26296eb68876f Mon Sep 17 00:00:00 2001 From: kai Date: Wed, 28 Mar 2012 06:57:17 +0200 Subject: [PATCH] Remove unused member VarDeclaration::anonDecl. --- dmd/attrib.c | 5 ----- dmd/declaration.c | 3 --- dmd/declaration.h | 3 --- dmd2/attrib.c | 5 ----- dmd2/declaration.c | 3 --- dmd2/declaration.h | 3 --- 6 files changed, 22 deletions(-) diff --git a/dmd/attrib.c b/dmd/attrib.c index a7716a27..b26aa026 100644 --- a/dmd/attrib.c +++ b/dmd/attrib.c @@ -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); } diff --git a/dmd/declaration.c b/dmd/declaration.c index 48dc4a5f..6471e078 100644 --- a/dmd/declaration.c +++ b/dmd/declaration.c @@ -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 diff --git a/dmd/declaration.h b/dmd/declaration.h index 24d33801..7e32a6fc 100644 --- a/dmd/declaration.h +++ b/dmd/declaration.h @@ -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; diff --git a/dmd2/attrib.c b/dmd2/attrib.c index 72b4fcdb..5d55cd20 100644 --- a/dmd2/attrib.c +++ b/dmd2/attrib.c @@ -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); } diff --git a/dmd2/declaration.c b/dmd2/declaration.c index 7402e134..6f7c3558 100644 --- a/dmd2/declaration.c +++ b/dmd2/declaration.c @@ -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 diff --git a/dmd2/declaration.h b/dmd2/declaration.h index e24135ec..079adfdf 100644 --- a/dmd2/declaration.h +++ b/dmd2/declaration.h @@ -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;