Skip to content

Commit 48da1c1

Browse files
committed
Eval startup snippets explicitly #102
removing snippets support from the builder. They are collected, but otherwise unused
1 parent a0417ca commit 48da1c1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

jjava-kernel/src/main/java/org/dflib/jjava/kernel/JavaKernelBuilder.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ public abstract class JavaKernelBuilder<
2424
protected final String jShellExecControlID;
2525
protected JJavaExecutionControlProvider jShellExecControlProvider;
2626
protected String timeout;
27-
protected final List<String> startupSnippets;
2827
protected final List<String> compilerOpts;
2928

3029
protected JavaKernelBuilder() {
3130
this.jShellExecControlID = UUID.randomUUID().toString();
32-
this.startupSnippets = new ArrayList<>();
3331
this.compilerOpts = new ArrayList<>();
3432
}
3533

@@ -38,14 +36,6 @@ public B jShellExecControlProvider(JJavaExecutionControlProvider jShellExecContr
3836
return (B) this;
3937
}
4038

41-
/**
42-
* Adds a snippet of script code to execute on startup.
43-
*/
44-
public B startupSnippets(Iterable<String> code) {
45-
code.forEach(startupSnippets::add);
46-
return (B) this;
47-
}
48-
4939
public B compilerOpts(Iterable<String> opts) {
5040
opts.forEach(this.compilerOpts::add);
5141
return (B) this;

0 commit comments

Comments
 (0)