Skip to content

Commit

Permalink
Remove unused variables in StructInitializer
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Oct 2, 2013
1 parent 52f378e commit 51700de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/init.c
Expand Up @@ -147,7 +147,6 @@ void VoidInitializer::toCBuffer(OutBuffer *buf, HdrGenState *hgs)
StructInitializer::StructInitializer(Loc loc)
: Initializer(loc)
{
ad = NULL;
}

Initializer *StructInitializer::syntaxCopy()
Expand Down Expand Up @@ -178,7 +177,6 @@ void StructInitializer::addInit(Identifier *field, Initializer *value)
Initializer *StructInitializer::semantic(Scope *sc, Type *t, NeedInterpret needInterpret)
{
//printf("StructInitializer::semantic(t = %s) %s\n", t->toChars(), toChars());
vars.setDim(field.dim);
t = t->toBasetype();
if (t->ty == Tsarray && t->nextOf()->toBasetype()->ty == Tstruct)
t = t->nextOf()->toBasetype();
Expand Down
3 changes: 0 additions & 3 deletions src/init.h
Expand Up @@ -90,9 +90,6 @@ class StructInitializer : public Initializer
Identifiers field; // of Identifier *'s
Initializers value; // parallel array of Initializer *'s

VarDeclarations vars; // parallel array of VarDeclaration *'s
AggregateDeclaration *ad; // which aggregate this is for

StructInitializer(Loc loc);
Initializer *syntaxCopy();
void addInit(Identifier *field, Initializer *value);
Expand Down

0 comments on commit 51700de

Please sign in to comment.