Skip to content

Commit 79321bd

Browse files
Removed unused context, renamed constant
1 parent 737592f commit 79321bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/NameOps.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ object NameOps {
2525
*
2626
* (+6 for ".class"). MaxNameLength can therefore be computed as follows:
2727
*/
28-
def apply(s: String)(implicit ctx: Context): String = {
28+
def apply(s: String): String = {
2929
val marker = "$$$$"
3030

31-
val limit: Int = 240
32-
val MaxNameLength = (limit - 6) min 2 * (limit - 6 - 2 * marker.length - 32)
31+
final val charLimit: Int = 240
32+
val MaxNameLength = (charLimit - 6) min 2 * (charLimit - 6 - 2 * marker.length - 32)
3333

3434
def toMD5(s: String, edge: Int): String = {
3535
val prefix = s take edge

0 commit comments

Comments
 (0)