Skip to content

Commit 3a8d837

Browse files
committed
Remove unnecessary @ImportStatic(RubyGuards.class)
1 parent b8b1e7e commit 3a8d837

File tree

8 files changed

+0
-23
lines changed

8 files changed

+0
-23
lines changed

src/main/java/org/truffleruby/cext/SymbolToIDNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@
1111

1212
import org.truffleruby.core.symbol.RubySymbol;
1313
import org.truffleruby.language.RubyBaseNode;
14-
import org.truffleruby.language.RubyGuards;
1514

1615
import com.oracle.truffle.api.dsl.Cached;
1716
import com.oracle.truffle.api.dsl.GenerateUncached;
18-
import com.oracle.truffle.api.dsl.ImportStatic;
1917
import com.oracle.truffle.api.dsl.ReportPolymorphism;
2018
import com.oracle.truffle.api.dsl.Specialization;
2119
import com.oracle.truffle.api.profiles.ConditionProfile;
2220

2321
@GenerateUncached
24-
@ImportStatic(RubyGuards.class)
2522
@ReportPolymorphism
2623
public abstract class SymbolToIDNode extends RubyBaseNode {
2724

src/main/java/org/truffleruby/cext/WrapNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@
2121
import org.truffleruby.language.NotProvided;
2222
import org.truffleruby.language.RubyBaseNode;
2323
import org.truffleruby.language.RubyDynamicObject;
24-
import org.truffleruby.language.RubyGuards;
2524
import org.truffleruby.language.control.RaiseException;
2625

2726
import com.oracle.truffle.api.dsl.Cached;
2827
import com.oracle.truffle.api.dsl.GenerateUncached;
29-
import com.oracle.truffle.api.dsl.ImportStatic;
3028
import com.oracle.truffle.api.dsl.Specialization;
3129
import com.oracle.truffle.api.library.CachedLibrary;
3230
import com.oracle.truffle.api.object.DynamicObjectLibrary;
@@ -35,7 +33,6 @@
3533
import java.lang.invoke.VarHandle;
3634

3735
@GenerateUncached
38-
@ImportStatic(RubyGuards.class)
3936
public abstract class WrapNode extends RubyBaseNode {
4037

4138
public static WrapNode create() {

src/main/java/org/truffleruby/core/cast/BigIntegerCastNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,17 @@
1010
package org.truffleruby.core.cast;
1111

1212
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
13-
import com.oracle.truffle.api.dsl.ImportStatic;
1413
import com.oracle.truffle.api.dsl.NodeChild;
1514
import com.oracle.truffle.api.dsl.Specialization;
1615
import org.truffleruby.core.exception.RubyException;
1716
import org.truffleruby.core.numeric.BigIntegerOps;
1817
import org.truffleruby.core.numeric.RubyBignum;
1918
import org.truffleruby.language.RubyBaseNodeWithExecute;
20-
import org.truffleruby.language.RubyGuards;
2119
import org.truffleruby.language.control.RaiseException;
2220

2321
import java.math.BigInteger;
2422

2523
/** Casts a value into a BigInteger. */
26-
@ImportStatic(RubyGuards.class)
2724
@NodeChild(value = "value", type = RubyBaseNodeWithExecute.class)
2825
public abstract class BigIntegerCastNode extends RubyBaseNodeWithExecute {
2926

src/main/java/org/truffleruby/core/cast/IntegerCastNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010
package org.truffleruby.core.cast;
1111

1212
import org.truffleruby.language.RubyBaseNode;
13-
import org.truffleruby.language.RubyGuards;
1413
import org.truffleruby.language.control.RaiseException;
1514

1615
import com.oracle.truffle.api.dsl.GenerateUncached;
17-
import com.oracle.truffle.api.dsl.ImportStatic;
1816
import com.oracle.truffle.api.dsl.Specialization;
1917
import org.truffleruby.utils.Utils;
2018

2119
/** See {@link ToIntNode} for a comparison of different integer conversion nodes. */
2220
@GenerateUncached
23-
@ImportStatic(RubyGuards.class)
2421
public abstract class IntegerCastNode extends RubyBaseNode {
2522

2623
public static IntegerCastNode create() {

src/main/java/org/truffleruby/core/cast/LongCastNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010
package org.truffleruby.core.cast;
1111

1212
import org.truffleruby.language.RubyBaseNode;
13-
import org.truffleruby.language.RubyGuards;
1413
import org.truffleruby.language.control.RaiseException;
1514

1615
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
1716
import com.oracle.truffle.api.dsl.GenerateUncached;
18-
import com.oracle.truffle.api.dsl.ImportStatic;
1917
import com.oracle.truffle.api.dsl.Specialization;
2018

2119
/** See {@link ToIntNode} for a comparison of different integer conversion nodes. */
2220
@GenerateUncached
23-
@ImportStatic(RubyGuards.class)
2421
public abstract class LongCastNode extends RubyBaseNode {
2522

2623
public static LongCastNode create() {

src/main/java/org/truffleruby/core/encoding/EncodingNodes.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import org.truffleruby.core.string.ImmutableRubyString;
4444
import org.truffleruby.language.Nil;
4545
import org.truffleruby.language.RubyBaseNode;
46-
import org.truffleruby.language.RubyGuards;
4746
import org.truffleruby.language.Visibility;
4847
import org.truffleruby.language.control.RaiseException;
4948
import org.truffleruby.language.library.RubyStringLibrary;
@@ -729,7 +728,6 @@ protected int getIndex(RubyEncoding encoding) {
729728

730729
// MRI: rb_enc_check_str / rb_encoding_check (with Ruby String arguments)
731730
@Primitive(name = "encoding_ensure_compatible_str")
732-
@ImportStatic(RubyGuards.class)
733731
public abstract static class CheckStringEncodingPrimitiveNode extends PrimitiveArrayArgumentsNode {
734732
@Specialization(guards = {
735733
"libFirst.isRubyString(first)",

src/main/java/org/truffleruby/interop/ForeignToRubyNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
import com.oracle.truffle.api.dsl.Fallback;
1313
import org.truffleruby.core.string.RubyString;
1414
import org.truffleruby.language.RubyBaseNode;
15-
import org.truffleruby.language.RubyGuards;
1615

1716
import com.oracle.truffle.api.dsl.Cached;
1817
import com.oracle.truffle.api.dsl.GenerateUncached;
19-
import com.oracle.truffle.api.dsl.ImportStatic;
2018
import com.oracle.truffle.api.dsl.Specialization;
2119

2220
@GenerateUncached
23-
@ImportStatic(RubyGuards.class)
2421
public abstract class ForeignToRubyNode extends RubyBaseNode {
2522

2623
public static ForeignToRubyNode create() {

src/main/java/org/truffleruby/interop/FromJavaStringNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,12 @@
1717
import org.truffleruby.core.string.StringNodes;
1818
import org.truffleruby.core.string.StringOperations;
1919
import org.truffleruby.language.RubyBaseNode;
20-
import org.truffleruby.language.RubyGuards;
2120

2221
import com.oracle.truffle.api.dsl.Cached;
2322
import com.oracle.truffle.api.dsl.GenerateUncached;
24-
import com.oracle.truffle.api.dsl.ImportStatic;
2523
import com.oracle.truffle.api.dsl.Specialization;
2624

2725
@GenerateUncached
28-
@ImportStatic(RubyGuards.class)
2926
public abstract class FromJavaStringNode extends RubyBaseNode {
3027

3128
public static FromJavaStringNode create() {

0 commit comments

Comments
 (0)