Skip to content

Commit

Permalink
Remove Scope::lastoffset and lastoffset2 so they're not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed May 17, 2015
1 parent 47efe28 commit d941b1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/doc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1493,10 +1493,7 @@ void DocComment::writeSections(Scope *sc, Dsymbols *a, OutBuffer *buf)
buf->writestring("$(DDOC_BLANKLINE)\n");
}
else
{
sc->lastoffset2 = buf->offset;
buf->writestring(")\n");
}
}

/***************************************************
Expand Down
2 changes: 0 additions & 2 deletions src/scope.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ Scope::Scope()
this->fieldinit_dim = 0;
this->flags = 0;
this->lastdc = NULL;
this->lastoffset = 0;
this->anchorCounts = NULL;
this->prevAnchor = NULL;
this->userAttribDecl = NULL;
Expand Down Expand Up @@ -155,7 +154,6 @@ Scope *Scope::push()
s->fieldinit = saveFieldInit();
s->flags = (flags & (SCOPEcontract | SCOPEdebug | SCOPEctfe | SCOPEcompile | SCOPEconstraint));
s->lastdc = NULL;
s->lastoffset = 0;

assert(this != s);
return s;
Expand Down
2 changes: 0 additions & 2 deletions src/scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ struct Scope
UserAttributeDeclaration *userAttribDecl; // user defined attributes

DocComment *lastdc; // documentation comment for last symbol at this scope
size_t lastoffset; // offset in docbuf of where to insert next dec (for ditto)
size_t lastoffset2; // offset in docbuf of where to insert next dec (for unittest)
AA *anchorCounts; // lookup duplicate anchor name count
Identifier *prevAnchor; // qualified symbol name of last doc anchor

Expand Down

0 comments on commit d941b1f

Please sign in to comment.