Skip to content

Commit cde21de

Browse files
committed
remove some unused code
1 parent 51f4969 commit cde21de

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

frontends/spin/spinlang.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -990,16 +990,6 @@ doSpinTransform(AST **astptr, int level, AST *parent)
990990
}
991991
}
992992
}
993-
#ifdef OLD_REFERENCES
994-
if (typ && IsRefType(typ)) {
995-
AST *deref;
996-
AstReportAs(ast, &saveinfo);
997-
deref = NewAST(AST_MEMREF, typ->left, DupAST(ast));
998-
deref = NewAST(AST_ARRAYREF, deref, AstInteger(0));
999-
*ast = *deref;
1000-
AstReportDone(&saveinfo);
1001-
}
1002-
#endif
1003993
break;
1004994
}
1005995
case AST_PRINTDEBUG:

frontends/types.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,14 +1341,7 @@ AST *CoerceAssignTypes(AST *line, int kind, AST **astptr, AST *desttype, AST *sr
13411341
*astptr = copy;
13421342
} else {
13431343
Symbol *sym;
1344-
/* in Spin if we already have an @ then don't @ it again */
1345-
if ( (expr->kind == AST_ADDROF || expr->kind == AST_ABSADDROF)
1346-
&& IsSpinLang(lang) ) {
1347-
/* skip @ */
1348-
makeref = false;
1349-
} else {
1350-
*astptr = NewAST(AST_ADDROF, expr, NULL);
1351-
}
1344+
*astptr = NewAST(AST_ADDROF, expr, NULL);
13521345
if (curfunc && IsLocalVariableEx(expr, &sym)) {
13531346
curfunc->local_address_taken = 1;
13541347
if (sym) {

0 commit comments

Comments
 (0)