4242import com .oracle .graal .python .builtins .objects .floats .PFloat ;
4343import com .oracle .graal .python .builtins .objects .ints .PInt ;
4444import com .oracle .graal .python .builtins .objects .tuple .PTuple ;
45- import com .oracle .graal .python .nodes .PBaseNode ;
4645import com .oracle .graal .python .nodes .PGuards ;
47- import com .oracle .graal .python .nodes .SpecialMethodNames ;
4846import com .oracle .graal .python .nodes .call .special .LookupAndCallUnaryNode ;
4947import com .oracle .graal .python .nodes .control .GetIteratorNode ;
5048import com .oracle .graal .python .nodes .function .PythonBuiltinBaseNode ;
@@ -108,7 +106,7 @@ public abstract static class MathDoubleUnaryBuiltinNode extends MathUnaryBuiltin
108106
109107 public abstract double executeObject (Object value );
110108
111- public double count (@ SuppressWarnings ( "unused" ) double value ) {
109+ public double count (double value ) {
112110 throw raise (NotImplementedError , "count function in Math" );
113111 }
114112
@@ -336,7 +334,6 @@ public double copySignOO(Object magnitude, Object sign) {
336334
337335 @ Builtin (name = "factorial" , fixedNumOfArguments = 1 )
338336 @ ImportStatic (Double .class )
339- @ SuppressWarnings ("unused" )
340337 @ GenerateNodeFactory
341338 public abstract static class FactorialNode extends PythonUnaryBuiltinNode {
342339
@@ -756,12 +753,12 @@ public PTuple frexpO(Object value,
756753 @ GenerateNodeFactory
757754 public abstract static class IsNanNode extends PythonUnaryBuiltinNode {
758755 @ Specialization
759- public boolean isNan (@ SuppressWarnings ( "unused" ) long value ) {
756+ public boolean isNan (long value ) {
760757 return false ;
761758 }
762759
763760 @ Specialization
764- public boolean isNan (@ SuppressWarnings ( "unused" ) PInt value ) {
761+ public boolean isNan (PInt value ) {
765762 return false ;
766763 }
767764
@@ -806,17 +803,17 @@ private boolean isCloseDouble(double a, double b, double rel_tol, double abs_tol
806803 }
807804
808805 @ Specialization
809- public boolean isClose (double a , double b , @ SuppressWarnings ( "unused" ) PNone rel_tol , @ SuppressWarnings ( "unused" ) PNone abs_tol ) {
806+ public boolean isClose (double a , double b , PNone rel_tol , PNone abs_tol ) {
810807 return isCloseDouble (a , b , DEFAULT_REL , DEFAULT_ABS );
811808 }
812809
813810 @ Specialization
814- public boolean isClose (double a , double b , @ SuppressWarnings ( "unused" ) PNone rel_tol , double abs_tol ) {
811+ public boolean isClose (double a , double b , PNone rel_tol , double abs_tol ) {
815812 return isCloseDouble (a , b , DEFAULT_REL , abs_tol );
816813 }
817814
818815 @ Specialization
819- public boolean isClose (double a , double b , double rel_tol , @ SuppressWarnings ( "unused" ) PNone abs_tol ) {
816+ public boolean isClose (double a , double b , double rel_tol , PNone abs_tol ) {
820817 return isCloseDouble (a , b , rel_tol , DEFAULT_ABS );
821818 }
822819
@@ -834,7 +831,6 @@ public boolean isClose(double a, long b, double rel_tol, PNone abs_tol) {
834831 @ Builtin (name = "ldexp" , fixedNumOfArguments = 2 )
835832 @ TypeSystemReference (PythonArithmeticTypes .class )
836833 @ GenerateNodeFactory
837- @ SuppressWarnings ("unused" )
838834 public abstract static class LdexpNode extends PythonBuiltinNode {
839835
840836 private static final String EXPECTED_INT_MESSAGE = "Expected an int as second argument to ldexp." ;
@@ -1328,12 +1324,12 @@ public double count(double value) {
13281324 public abstract static class IsFiniteNode extends PythonUnaryBuiltinNode {
13291325
13301326 @ Specialization
1331- public boolean isfinite (@ SuppressWarnings ( "unused" ) long value ) {
1327+ public boolean isfinite (long value ) {
13321328 return true ;
13331329 }
13341330
13351331 @ Specialization
1336- public boolean isfinite (@ SuppressWarnings ( "unused" ) PInt value ) {
1332+ public boolean isfinite (PInt value ) {
13371333 return true ;
13381334 }
13391335
@@ -1356,12 +1352,12 @@ public boolean isinf(Object value,
13561352 public abstract static class IsInfNode extends PythonUnaryBuiltinNode {
13571353
13581354 @ Specialization
1359- public boolean isinf (@ SuppressWarnings ( "unused" ) long value ) {
1355+ public boolean isinf (long value ) {
13601356 return false ;
13611357 }
13621358
13631359 @ Specialization
1364- public boolean isinf (@ SuppressWarnings ( "unused" ) PInt value ) {
1360+ public boolean isinf (PInt value ) {
13651361 return false ;
13661362 }
13671363
@@ -1445,15 +1441,15 @@ public double log(long value, PNone novalue,
14451441 }
14461442
14471443 @ Specialization
1448- public double logDN (double value , @ SuppressWarnings ( "unused" ) PNone novalue ,
1444+ public double logDN (double value , PNone novalue ,
14491445 @ Cached ("createBinaryProfile()" ) ConditionProfile doNotFit ) {
14501446 raiseMathError (doNotFit , value <= 0 );
14511447 return Math .log (value );
14521448 }
14531449
14541450 @ Specialization
14551451 @ TruffleBoundary
1456- public double logPIN (PInt value , @ SuppressWarnings ( "unused" ) PNone novalue ,
1452+ public double logPIN (PInt value , PNone novalue ,
14571453 @ Cached ("createBinaryProfile()" ) ConditionProfile doNotFit ) {
14581454 BigInteger bValue = value .getValue ();
14591455 raiseMathError (doNotFit , bValue .compareTo (BigInteger .ZERO ) == -1 );
@@ -1989,7 +1985,7 @@ static double m_erf_series(double x) {
19891985
19901986 x2 = x * x ;
19911987 acc = 0.0 ;
1992- fk = ( double ) ERF_SERIES_TERMS + 0.5 ;
1988+ fk = ERF_SERIES_TERMS + 0.5 ;
19931989 for (i = 0 ; i < ERF_SERIES_TERMS ; i ++) {
19941990 acc = 2.0 + x2 * acc / fk ;
19951991 fk -= 1.0 ;
0 commit comments