Skip to content

Commit f71062c

Browse files
committedFeb 13, 2025
chore(commands): Remove obsolete code
The code has become obsolete because since 3cfe66e the VCS plugins do not implement `CommandLineTool` anymore. Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
1 parent 212eb7b commit f71062c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed
 

‎plugins/commands/requirements/src/main/kotlin/RequirementsCommand.kt

-7
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import kotlin.reflect.full.companionObjectInstance
3535
import org.apache.logging.log4j.kotlin.logger
3636

3737
import org.ossreviewtoolkit.analyzer.PackageManager
38-
import org.ossreviewtoolkit.downloader.VersionControlSystem
3938
import org.ossreviewtoolkit.model.config.AnalyzerConfiguration
4039
import org.ossreviewtoolkit.model.config.RepositoryConfiguration
4140
import org.ossreviewtoolkit.plugins.api.OrtPlugin
@@ -215,12 +214,6 @@ class RequirementsCommand(
215214
)
216215
}
217216

218-
VersionControlSystem::class.java.isAssignableFrom(it) -> {
219-
category = "VersionControlSystem"
220-
logger.debug { "$it is a $category." }
221-
it.getDeclaredConstructor().newInstance()
222-
}
223-
224217
else -> {
225218
logger.debug { "Trying to instantiate $it without any arguments." }
226219
it.getDeclaredConstructor().newInstance()

0 commit comments

Comments
 (0)
Please sign in to comment.