Skip to content

Commit

Permalink
Remove unused code which will never be activated
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Feb 5, 2013
1 parent b65d12a commit 0a57b20
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/func.c
Expand Up @@ -1022,8 +1022,6 @@ void FuncDeclaration::semantic3(Scope *sc)
arg->ident = id = Identifier::generateId("_param_", i);
}
Type *vtype = arg->type;
//if (isPure())
//vtype = vtype->addMod(MODconst);
VarDeclaration *v = new VarDeclaration(loc, vtype, id, NULL);
//printf("declaring parameter %s of type %s\n", v->toChars(), v->type->toChars());
v->storage_class |= STCparameter;
Expand Down Expand Up @@ -1798,8 +1796,6 @@ VarDeclaration *FuncDeclaration::declareThis(Scope *sc, AggregateDeclaration *ad
Type *thandle = ad->handle;
thandle = thandle->addMod(type->mod);
thandle = thandle->addStorageClass(storage_class);
//if (isPure())
//thandle = thandle->addMod(MODconst);
v = new ThisDeclaration(loc, thandle);
//v = new ThisDeclaration(loc, isCtorDeclaration() ? ad->handle : thandle);
v->storage_class |= STCparameter;
Expand Down
3 changes: 0 additions & 3 deletions src/template.c
Expand Up @@ -674,9 +674,6 @@ void TemplateDeclaration::makeParamNamesVisibleInConstraint(Scope *paramscope, E
{
Parameter *fparam = Parameter::getNth(fparameters, i);
// Remove addMod same as func.d L1065 of FuncDeclaration::semantic3
//Type *vtype = fparam->type;
//if (fd->type && fd->isPure())
// vtype = vtype->addMod(MODconst);
fparam->storageClass &= (STCin | STCout | STCref | STClazy | STCfinal | STC_TYPECTOR | STCnodtor);
fparam->storageClass |= STCparameter;
if (fvarargs == 2 && i + 1 == nfparams)
Expand Down

0 comments on commit 0a57b20

Please sign in to comment.