From 8d25816534fe7d2ddb320f27a3b3d24b1b65b8f1 Mon Sep 17 00:00:00 2001 From: paulklint Date: Thu, 17 Oct 2024 13:05:38 +0200 Subject: [PATCH] Removed compiler flag "warnDeprecated" --- .../core/library/lang/rascalcore/check/CollectExpression.rsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectExpression.rsc b/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectExpression.rsc index 5f04c30b..bf7b6599 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectExpression.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/check/CollectExpression.rsc @@ -596,7 +596,7 @@ void collect(current: (Expression) ` ( <{Expression ","}* if(ft:afunc(AType ret, list[AType] formals, list[Keyword] kwFormals) := tp){ try { // TODO: turn this on after review of all @deprecated uses in the Rascal library library - if(ft.deprecationMessage? && c.getConfig().warnDeprecated){ + if(ft.deprecationMessage?){ s.report(warning(expression, "Deprecated function%v", isEmpty(ft.deprecationMessage) ? "" : ": " + ft.deprecationMessage)); } @@ -641,7 +641,7 @@ void collect(current: (Expression) ` ( <{Expression ","}* if(ft:afunc(AType ret, list[AType] formals, list[Keyword] kwFormals) := texp){ // TODO; texp can get type value and then texp.deprecationMessage does not exist - if(texp.deprecationMessage? && c.getConfig().warnDeprecated){ + if(texp.deprecationMessage?){ s.report(warning(expression, "Deprecated function%v", isEmpty(texp.deprecationMessage) ? "": ": " + texp.deprecationMessage)); } return checkArgsAndComputeReturnType(expression, scope, ret, formals, kwFormals, ft.varArgs, actuals, keywordArguments, [true | int _ <- index(formals)], s);