Skip to content

Commit

Permalink
Remove unused Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Sep 23, 2024
1 parent b32bf7c commit bb0e402
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/kotlin/us/ihmc/build/IHMCCompositeBuildAssembler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import org.codehaus.groovy.ast.expr.*
import org.codehaus.groovy.control.MultipleCompilationErrorsException
import org.gradle.api.GradleException
import org.gradle.api.GradleScriptException
import org.gradle.api.logging.Logger
import java.io.IOException
import java.nio.file.Files
import java.nio.file.Path
import java.util.*

class IHMCCompositeBuildAssembler(val configurator: IHMCSettingsConfigurator)
{
val logger = configurator.logger
val buildRootKebabCasedName = configurator.settings.rootProject.name
var compositeRootKebabCasedName = "NotYetEvaluated"
val compositeSearchHeight = configurator.compositeSearchHeight
Expand Down Expand Up @@ -249,7 +247,7 @@ class IHMCCompositeBuildAssembler(val configurator: IHMCSettingsConfigurator)

val nodes: List<ASTNode> = builder.buildFromString(bytesInFile)
val dependencies = ArrayList<Array<String>>()
val visitor = ExternalGradleFileCodeVisitor(dependencies, logger)
val visitor = ExternalGradleFileCodeVisitor(dependencies)
for (node in nodes)
{
node.visit(visitor)
Expand Down Expand Up @@ -280,7 +278,7 @@ class IHMCCompositeBuildAssembler(val configurator: IHMCSettingsConfigurator)
return dependencySet
}

class ExternalGradleFileCodeVisitor(val dependencies: ArrayList<Array<String>>, val logger: Logger) : CodeVisitorSupport()
class ExternalGradleFileCodeVisitor(val dependencies: ArrayList<Array<String>>) : CodeVisitorSupport()
{
override fun visitArgumentlistExpression(ale: ArgumentListExpression)
{
Expand Down

0 comments on commit bb0e402

Please sign in to comment.