Skip to content

Commit bb114d3

Browse files
Remove unused params
1 parent 89179fa commit bb114d3

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

modules/cli/src/main/scala/scala/cli/commands/Run.scala

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ object Run extends ScalaCommand[RunOptions] {
6666
allowTerminate: Boolean
6767
): Either[BuildException, (Process, CompletableFuture[_])] = either {
6868
val process = value(maybeRunOnce(
69-
inputs.workspace,
70-
inputs.projectName,
7169
build,
7270
programArgs,
7371
logger,
@@ -165,8 +163,6 @@ object Run extends ScalaCommand[RunOptions] {
165163
}
166164

167165
private def maybeRunOnce(
168-
root: os.Path,
169-
projectName: String,
170166
build: Build.Successful,
171167
args: Seq[String],
172168
logger: Logger,
@@ -189,8 +185,6 @@ object Run extends ScalaCommand[RunOptions] {
189185
if (jvmRunner) (Constants.runnerMainClass, mainClass +: verbosity +: args)
190186
else (mainClass, args)
191187
val res = runOnce(
192-
root,
193-
projectName,
194188
build,
195189
finalMainClass,
196190
finalArgs,
@@ -201,8 +195,6 @@ object Run extends ScalaCommand[RunOptions] {
201195
}
202196

203197
private def runOnce(
204-
root: os.Path,
205-
projectName: String,
206198
build: Build.Successful,
207199
mainClass: String,
208200
args: Seq[String],

modules/cli/src/main/scala/scala/cli/commands/Test.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ object Test extends ScalaCommand[TestOptions] {
8181
System.err.println()
8282
}
8383
val retCodeOrError = testOnce(
84-
inputs.workspace,
85-
inputs.projectName,
8684
s,
8785
options.requireTests,
8886
args.unparsed,
@@ -152,8 +150,6 @@ object Test extends ScalaCommand[TestOptions] {
152150
}
153151

154152
private def testOnce(
155-
root: os.Path,
156-
projectName: String,
157153
build: Build.Successful,
158154
requireTests: Boolean,
159155
args: Seq[String],

0 commit comments

Comments
 (0)