remove unused type params

This commit is contained in:
xuwei-k 2025-01-01 16:55:34 +09:00 committed by kenji yoshida
parent e04039a2ed
commit d7ec1013da
7 changed files with 7 additions and 7 deletions

View File

@ -58,7 +58,7 @@ class FileExamplesTest extends UnitSpec {
}
}
def withDirectoryStructure[A](withCompletionPrefix: String = "")(
def withDirectoryStructure(withCompletionPrefix: String = "")(
thunk: DirectoryStructure => Assertion
): Assertion = {
IO.withTemporaryDirectory { tempDir =>

View File

@ -209,7 +209,7 @@ private[librarymanagement] abstract class SemComparatorFunctions {
case _ => throw new IllegalArgumentException(s"Invalid comparator: $comparator")
}
}
private def splitOn[A](s: String, sep: Char): Vector[String] =
private def splitOn(s: String, sep: Char): Vector[String] =
if (s eq null) Vector()
else s.split(sep).filterNot(_ == "").toVector
private def splitDash(s: String) = splitOn(s, '-')

View File

@ -58,7 +58,7 @@ object VersionNumber {
def unapply(s: String): Option[(Seq[Long], Seq[String], Seq[String])] = {
// null safe, empty string safe
def splitOn[A](s: String, sep: Char): Vector[String] =
def splitOn(s: String, sep: Char): Vector[String] =
if (s eq null) Vector()
else s.split(sep).filterNot(_ == "").toVector

View File

@ -356,7 +356,7 @@ private[sbt] object SettingCompletions {
* Returns a string representation of the underlying type T for a `key` representing a `Setting[T]`, `Task[T]`, or `InputTask[T]`.
* This string representation is currently a cleaned up toString of the underlying ClassTag.
*/
def keyTypeString[T](key: AttributeKey[?]): String =
def keyTypeString(key: AttributeKey[?]): String =
complete.TypeString.cleanup(key.tag.typeArg.toString)
/** True if the `key` represents a setting or task that may be appended using an assignment method such as `+=`. */

View File

@ -308,6 +308,6 @@ object TaskExtra extends TaskExtra {
// The "taskDefinitionKey" is used, at least, by the ".previous" functionality.
// But apparently it *cannot* survive a task map/flatMap/etc. See actions/depends-on.
private[sbt] def newAttributes[A](attributes: AttributeMap): AttributeMap =
private[sbt] def newAttributes(attributes: AttributeMap): AttributeMap =
AttributeMap(attributes.entries.filter(_.key.label != "taskDefinitionKey"))
}

View File

@ -28,7 +28,7 @@ private[sbt] object Execute {
private[sbt] def completed(p: => Unit): Completed = new Completed {
def process(): Unit = p
}
def noTriggers[TaskId[_]] = new Triggers(Map.empty, Map.empty, identity)
def noTriggers = new Triggers(Map.empty, Map.empty, identity)
def config(checkCycles: Boolean, overwriteNode: Incomplete => Boolean = const(false)): Config =
new Config(checkCycles, overwriteNode)

View File

@ -120,7 +120,7 @@ object ActionCache:
case Right(_) => true
case Left(_) => false
inline private[sbt] def findActionResult[I: HashWriter, O](
inline private[sbt] def findActionResult[I: HashWriter](
key: I,
codeContentHash: Digest,
extraHash: Digest,