Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Surée committed Nov 6, 2024
1 parent 98a38eb commit 78eb086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/main/scala/sbtlicensereport/SbtLicenseReport.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sbtlicensereport

import sbt._
import sbt.librarymanagement.ivy.IvyDependencyResolution
import Keys._
import license._

Expand Down
22 changes: 2 additions & 20 deletions src/main/scala/sbtlicensereport/license/LicenseReport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ package license

import sbt._
import sbt.io.Using
import sbt.internal.librarymanagement.IvySbt
import sbt.librarymanagement.{
DependencyResolution,
UnresolvedWarning,
UnresolvedWarningConfiguration,
UpdateConfiguration
}

case class DepModuleInfo(organization: String, name: String, version: String) {
override def toString = s"${organization} # ${name} # ${version}"
Expand Down Expand Up @@ -186,8 +179,8 @@ object LicenseReport {

private def getLicenses(
report: UpdateReport,
configs: Set[String] = Set.empty,
categories: Seq[LicenseCategory] = LicenseCategory.all,
configs: Set[String],
categories: Seq[LicenseCategory],
originatingModule: DepModuleInfo
): Seq[DepLicense] = {
for {
Expand Down Expand Up @@ -216,15 +209,4 @@ object LicenseReport {
// TODO - Filter for a real report...
LicenseReport(licenses, report)
}

private def resolve(
depRes: DependencyResolution,
module: IvySbt#Module,
log: Logger
): Either[UnresolvedWarning, UpdateReport] = {
val uc = UpdateConfiguration().withLogging(UpdateLogging.Quiet)
val uwc = UnresolvedWarningConfiguration()

depRes.update(module, uc, uwc, log)
}
}

0 comments on commit 78eb086

Please sign in to comment.