Skip to content

Commit 0389077

Browse files
committed
builder: remove duplicate code (fixes issue 292)
1 parent d4903f8 commit 0389077

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

parser/ast_builder.c2

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,7 @@ fn void Builder.applyAttribute(Builder* b, Decl* d, const Attr* a) {
602602
if (!b.actOnTypeAttr(d, a)) return;
603603

604604
FunctionTypeDecl* ftd = cast<FunctionTypeDecl*>(d);
605-
if (a.kind == AttrKind.PrintfFormat) {
606-
b.applyAttribute(cast<Decl*>(ftd.getDecl()), a);
607-
} else {
608-
b.applyAttribute(cast<Decl*>(ftd.getDecl()), a);
609-
}
605+
b.applyAttribute(cast<Decl*>(ftd.getDecl()), a);
610606
break;
611607
case AliasType:
612608
b.actOnTypeAttr(d, a);

0 commit comments

Comments
 (0)