Skip to content

Commit 5049689

Browse files
committed
Drop duplicate methods in DottyPredef
Drop some methods in DottyPredef that are also in Predef
1 parent cd613e7 commit 5049689

File tree

1 file changed

+3
-36
lines changed

1 file changed

+3
-36
lines changed

library/src/dotty/DottyPredef.scala

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,6 @@ object DottyPredef {
1313
scala.runtime.Scala3RunTime.assertFailed()
1414
}
1515

16-
inline final def implicitly[T](implicit ev: T): T = ev
17-
18-
/** Used to mark code blocks as being expressions, instead of being taken as part of anonymous classes and the like.
19-
* This is just a different name for [[identity]].
20-
*
21-
* @example Separating code blocks from `new`:
22-
* {{{
23-
* val x = new AnyRef
24-
* {
25-
* val y = ...
26-
* println(y)
27-
* }
28-
* // the { ... } block is seen as the body of an anonymous class
29-
*
30-
* val x = new AnyRef
31-
*
32-
* {
33-
* val y = ...
34-
* println(y)
35-
* }
36-
* // an empty line is a brittle "fix"
37-
*
38-
* val x = new AnyRef
39-
* locally {
40-
* val y = ...
41-
* println(y)
42-
* }
43-
* // locally guards the block and helps communicate intent
44-
* }}}
45-
* @group utilities
46-
*/
47-
inline def locally[T](inline body: T): T = body
48-
4916
/**
5017
* Retrieve the single value of a type with a unique inhabitant.
5118
*
@@ -59,9 +26,9 @@ object DottyPredef {
5926
* }}}
6027
* @group utilities
6128
*/
62-
inline def valueOf[T]: T = summonFrom {
63-
case ev: ValueOf[T] => ev.value
64-
}
29+
//inline def valueOf[T]: T = summonFrom {
30+
// case ev: ValueOf[T] => ev.value
31+
//}
6532

6633
/** Summon a given value of type `T`. Usually, the argument is not passed explicitly.
6734
*

0 commit comments

Comments
 (0)