Skip to content

Commit a31a6c7

Browse files
committed
Remove unused methods
Not fixup'ed with another commit to keep a trace of the original version of these methods.
1 parent 51f3fa1 commit a31a6c7

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

Diff for: compiler/src/dotty/tools/dotc/parsing/Parsers.scala

+3-28
Original file line numberDiff line numberDiff line change
@@ -3079,35 +3079,13 @@ object Parsers {
30793079

30803080
/* -------- PARAMETERS ------------------------------------------- */
30813081

3082-
/** DefParamClause ::= DefTypeParamClause
3083-
* | DefTermParamClause
3084-
* | UsingParamClause
3085-
*/
3086-
def typeOrTermParamClause(
3087-
ownerKind: ParamOwner,
3088-
nparams: Int, // number of parameters preceding this clause
3089-
ofClass: Boolean = false, // owner is a class
3090-
ofCaseClass: Boolean = false, // owner is a case class
3091-
prefix: Boolean = false, // clause precedes name of an extension method
3092-
givenOnly: Boolean = false, // only given parameters allowed
3093-
firstClause: Boolean = false // clause is the first in regular list of clauses
3094-
): List[TypeDef] | List[ValDef] =
3095-
if (in.token == LPAREN)
3096-
termParamClause(nparams, ofClass, ofCaseClass, prefix, givenOnly, firstClause)
3097-
else if (in.token == LBRACKET)
3098-
typeParamClause(ownerKind)
3099-
else
3100-
Nil
3101-
3102-
end typeOrTermParamClause
3103-
31043082
/** DefParamClauses ::= DefParamClause { DefParamClause } -- and two DefTypeParamClause cannot be adjacent
3083+
* DefParamClause ::= DefTypeParamClause
3084+
* | DefTermParamClause
3085+
* | UsingParamClause
31053086
*/
31063087
def typeOrTermParamClauses(
31073088
ownerKind: ParamOwner,
3108-
ofClass: Boolean = false,
3109-
ofCaseClass: Boolean = false,
3110-
givenOnly: Boolean = false,
31113089
numLeadParams: Int = 0
31123090
): List[List[TypeDef] | List[ValDef]] =
31133091

@@ -3118,9 +3096,6 @@ object Parsers {
31183096
val paramsStart = in.offset
31193097
val params = termParamClause(
31203098
numLeadParams,
3121-
ofClass = ofClass,
3122-
ofCaseClass = ofCaseClass,
3123-
givenOnly = givenOnly,
31243099
firstClause = firstClause)
31253100
val lastClause = params.nonEmpty && params.head.mods.flags.is(Implicit)
31263101
params :: (

0 commit comments

Comments
 (0)