Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 40 deletions.
29 changes: 0 additions & 29 deletions core/src/main/java/org/jruby/ir/CodeVersion.java

This file was deleted.

11 changes: 0 additions & 11 deletions core/src/main/java/org/jruby/ir/IRModuleBody.java
Original file line number Diff line number Diff line change
@@ -3,13 +3,10 @@
import org.jruby.parser.StaticScope;

public class IRModuleBody extends IRScope {
private CodeVersion version; // Current code version for this module

public IRModuleBody(IRManager manager, IRScope lexicalParent, String name, int lineNumber, StaticScope staticScope) {
super(manager, lexicalParent, name, lineNumber, staticScope);

if (!getManager().isDryRun()) {
updateVersion();
if (staticScope != null) staticScope.setIRScope(this);
}
}
@@ -19,19 +16,11 @@ public int getNearestModuleReferencingScopeDepth() {
return 0;
}

public void updateVersion() {
version = CodeVersion.getClassVersionToken();
}

@Override
public IRScopeType getScopeType() {
return IRScopeType.MODULE_BODY;
}

public CodeVersion getVersion() {
return version;
}

@Override
public boolean isModuleBody() {
return true;

0 comments on commit b3bc8d5

Please sign in to comment.