Skip to content

Commit

Permalink
Remove leftover dead code after scala#95
Browse files Browse the repository at this point in the history
Rewritten from sbt/zinc@7769b58
  • Loading branch information
smarter committed Apr 15, 2016
1 parent f1d3170 commit 50046e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src-2.10/main/scala/xsbt/ExtractAPI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ class ExtractAPI[GlobalType <: Global](
{
def build(t: Type, typeParams: Array[xsbti.api.TypeParameter], valueParameters: List[xsbti.api.ParameterList]): xsbti.api.Def =
{
def parameterList(syms: List[Symbol], erase: Boolean = false): xsbti.api.ParameterList =
def parameterList(syms: List[Symbol]): xsbti.api.ParameterList =
{
val isImplicitList = syms match { case head :: _ => isImplicit(head); case _ => false }
new xsbti.api.ParameterList(syms.map(parameterS(erase)).toArray, isImplicitList)
new xsbti.api.ParameterList(syms.map(parameterS).toArray, isImplicitList)
}
t match {
case PolyType(typeParams0, base) =>
Expand All @@ -241,8 +241,8 @@ class ExtractAPI[GlobalType <: Global](
simpleName(s), getAccess(s), getModifiers(s), annotations(in, s))
}
}
def parameterS(erase: Boolean)(s: Symbol): xsbti.api.MethodParameter = {
val tp: global.Type = if (erase) global.transformedType(s.info) else s.info
def parameterS(s: Symbol): xsbti.api.MethodParameter = {
val tp: global.Type = s.info
makeParameter(simpleName(s), tp, tp.typeSymbol, s)
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/xsbt/ExtractAPI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ class ExtractAPI[GlobalType <: Global](
{
def build(t: Type, typeParams: Array[xsbti.api.TypeParameter], valueParameters: List[xsbti.api.ParameterList]): xsbti.api.Def =
{
def parameterList(syms: List[Symbol], erase: Boolean = false): xsbti.api.ParameterList =
def parameterList(syms: List[Symbol]): xsbti.api.ParameterList =
{
val isImplicitList = syms match { case head :: _ => isImplicit(head); case _ => false }
new xsbti.api.ParameterList(syms.map(parameterS(erase)).toArray, isImplicitList)
new xsbti.api.ParameterList(syms.map(parameterS).toArray, isImplicitList)
}
t match {
case PolyType(typeParams0, base) =>
Expand All @@ -241,8 +241,8 @@ class ExtractAPI[GlobalType <: Global](
simpleName(s), getAccess(s), getModifiers(s), annotations(in, s))
}
}
def parameterS(erase: Boolean)(s: Symbol): xsbti.api.MethodParameter = {
val tp: global.Type = if (erase) global.transformedType(s.info) else s.info
def parameterS(s: Symbol): xsbti.api.MethodParameter = {
val tp: global.Type = s.info
makeParameter(simpleName(s), tp, tp.typeSymbol, s)
}

Expand Down

0 comments on commit 50046e6

Please sign in to comment.