Skip to content

Commit

Permalink
Merge pull request #2384 from hpohl/labels
Browse files Browse the repository at this point in the history
remove unused labels
  • Loading branch information
9rnsr committed Jul 26, 2013
2 parents 21b130d + be5ea96 commit ece6d64
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/clone.c
Expand Up @@ -680,7 +680,6 @@ FuncDeclaration *StructDeclaration::buildXopCmp(Scope *sc)
if (global.endGagging(errors)) // if errors happened
{
members->remove(index);
Lerrcmp:
if (!xerrcmp)
{
Expression *e = new IdentifierExp(loc, Id::empty);
Expand Down
2 changes: 0 additions & 2 deletions src/expression.c
Expand Up @@ -501,7 +501,6 @@ Expression *resolvePropertiesX(Scope *sc, Expression *e1, Expression *e2 = NULL)
}
}

return_expr:
if (!e1->type)
{
error(loc, "cannot resolve type for %s", e1->toChars());
Expand Down Expand Up @@ -9152,7 +9151,6 @@ Expression *CallExp::addDtorHook(Scope *sc)
return e;
}
}
Lnone:
return this;
}

Expand Down
1 change: 0 additions & 1 deletion src/interpret.c
Expand Up @@ -1473,7 +1473,6 @@ Expression *DoStatement::interpret(InterState *istate)
if (istate->gotoTarget && istate->gotoTarget != this)
break; // continue at a higher level

Lcontinue:
istate->gotoTarget = NULL;
e = condition->interpret(istate);
if (exceptionOrCantInterpret(e))
Expand Down
1 change: 0 additions & 1 deletion src/mtype.c
Expand Up @@ -6498,7 +6498,6 @@ void TypeQualified::resolveHelper(Loc loc, Scope *sc,
}
else
{
Lerror:
if (id->dyncast() == DYNCAST_DSYMBOL)
{ // searchX already handles errors for template instances
assert(global.errors);
Expand Down
4 changes: 2 additions & 2 deletions src/opover.c
Expand Up @@ -1576,10 +1576,10 @@ static int inferApplyArgTypesY(TypeFunction *tf, Parameters *arguments, int flag
arg->type = arg->type->addStorageClass(arg->storageClass);
}
}
Lmatch:
Lmatch:
return 1;

Lnomatch:
Lnomatch:
return 0;
}

Expand Down
2 changes: 0 additions & 2 deletions src/parse.c
Expand Up @@ -1555,7 +1555,6 @@ Parameters *Parser::parseParameters(int *pvarargs, TemplateParameters **tpl)
nextToken();
break;
}
L3:
a = new Parameter(storageClass, at, ai, ae);
arguments->push(a);
if (token.value == TOKcomma)
Expand Down Expand Up @@ -6002,7 +6001,6 @@ Expression *Parser::parsePrimaryExp()
/* fall through to TOKlparen */

case TOKlparen:
Lparen:
{ // (parameters) => expression
// (parameters) { statements... }
parameters = parseParameters(&varargs, &tpl);
Expand Down
3 changes: 1 addition & 2 deletions src/template.c
Expand Up @@ -2382,7 +2382,7 @@ void templateResolve(Match *m, TemplateDeclaration *tdstart, Loc loc, Scope *sc,
if (c1 < c2) goto Ltd_best;
}

Lambig: // td_best and td are ambiguous
Lambig: // td_best and td are ambiguous
//printf("Lambig\n");
td_ambig = td;
m->nextf = fd; // Caution! m->nextf isn't complete instantiated fd, so must not call toPrettyChars()
Expand Down Expand Up @@ -6447,7 +6447,6 @@ Identifier *TemplateInstance::genIdent(Objects *args)
buf.writeByte('S');
sa = sa->toAlias();
Declaration *d = sa->isDeclaration();
Lsa2:
if (d && (!d->type || !d->type->deco))
{
error("forward reference of %s %s", d->kind(), d->toChars());
Expand Down

0 comments on commit ece6d64

Please sign in to comment.