mirror of https://github.com/sbt/sbt.git
remove unused type params
This commit is contained in:
parent
e04039a2ed
commit
d7ec1013da
|
|
@ -58,7 +58,7 @@ class FileExamplesTest extends UnitSpec {
|
|||
}
|
||||
}
|
||||
|
||||
def withDirectoryStructure[A](withCompletionPrefix: String = "")(
|
||||
def withDirectoryStructure(withCompletionPrefix: String = "")(
|
||||
thunk: DirectoryStructure => Assertion
|
||||
): Assertion = {
|
||||
IO.withTemporaryDirectory { tempDir =>
|
||||
|
|
|
|||
|
|
@ -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, '-')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 `+=`. */
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue