Skip to content

Commit d799f3f

Browse files
committed
Remove unused static environment in C test util class
1 parent e1da284 commit d799f3f

File tree

1 file changed

+2
-11
lines changed
  • src/test/java/com/laytonsmith/testing

1 file changed

+2
-11
lines changed

src/test/java/com/laytonsmith/testing/C.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@
2121
*/
2222
public class C {
2323

24-
private static final Environment ENV;
25-
26-
static {
27-
try {
28-
ENV = Static.GenerateStandaloneEnvironment(false);
29-
} catch (Exception ex) {
30-
throw new Error(ex);
31-
}
32-
}
3324
//Shortcut to Construct.class
3425
public static final Class<CArray> ARRAY = CArray.class;
3526
public static final Class<CBoolean> BOOLEAN = CBoolean.class;
@@ -69,8 +60,8 @@ public static Construct Void() {
6960
return CVoid.VOID;
7061
}
7162

72-
public static IVariable IVariable(String name, Construct val) {
73-
return new IVariable(Auto.TYPE, name, val, Target.UNKNOWN, ENV);
63+
public static IVariable IVariable(String name, Construct val, Environment env) {
64+
return new IVariable(Auto.TYPE, name, val, Target.UNKNOWN, env);
7465
}
7566

7667
public static Variable Variable(String name, String val) {

0 commit comments

Comments
 (0)