Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit ddc6660

Browse files
committed
Updated as per review comments.
1 parent a1d6ace commit ddc6660

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/main/java/com/mathworks/ci/MatlabCommandStepExecution.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class MatlabCommandStepExecution extends SynchronousNonBlockingStepExecut
1515
private static final long serialVersionUID = 1957239693658914450L;
1616

1717
private String command;
18-
private EnvVars env;
1918

2019

2120
public MatlabCommandStepExecution(StepContext context, String command) {
@@ -26,10 +25,6 @@ public MatlabCommandStepExecution(StepContext context, String command) {
2625
private String getCommand() {
2726
return this.command;
2827
}
29-
30-
private void setEnv(EnvVars env) {
31-
this.env = env;
32-
}
3328

3429
@Override
3530
public Void run() throws Exception {

src/main/java/com/mathworks/ci/RunMatlabCommandBuilder.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
public class RunMatlabCommandBuilder extends Builder implements SimpleBuildStep, MatlabBuild {
3030
private int buildResult;
31-
private EnvVars env;
3231
private String matlabCommand;
3332

3433
@DataBoundConstructor
@@ -48,19 +47,6 @@ public void setMatlabCommand(String matlabCommand) {
4847
public String getMatlabCommand() {
4948
return this.matlabCommand;
5049
}
51-
52-
private String getCommand() {
53-
return this.env == null ? getMatlabCommand() : this.env.expand(getMatlabCommand());
54-
}
55-
56-
private void setEnv(EnvVars env) {
57-
this.env = env;
58-
}
59-
60-
private EnvVars getEnv() {
61-
return this.env;
62-
}
63-
6450

6551
@Extension
6652
public static class RunMatlabCommandDescriptor extends BuildStepDescriptor<Builder> {

0 commit comments

Comments
 (0)