File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
core/shared/src/main/scala/scodec/bits Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -36,21 +36,4 @@ package object bits extends ScalaVersionSpecific {
36
36
*/
37
37
def hex (args : ByteVector * ): ByteVector = macro LiteralSyntaxMacros .hexStringInterpolator
38
38
}
39
-
40
- private [bits] implicit class EitherOps [L , R ](val self : Either [L , R ]) extends AnyVal {
41
- def map [R2 ](f : R => R2 ): Either [L , R2 ] = self match {
42
- case Right (r) => Right (f(r))
43
- case l : Left [L , R ] => l.asInstanceOf [Either [L , R2 ]]
44
- }
45
-
46
- def flatMap [R2 ](f : R => Either [L , R2 ]): Either [L , R2 ] = self match {
47
- case Right (r) => f(r)
48
- case l : Left [L , R ] => l.asInstanceOf [Either [L , R2 ]]
49
- }
50
-
51
- def toOption : Option [R ] = self match {
52
- case Right (r) => Some (r)
53
- case Left (_) => None
54
- }
55
- }
56
39
}
You can’t perform that action at this time.
0 commit comments