File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
core/src/main/scala/japgolly/scalajs/react Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -338,11 +338,6 @@ final class CallbackTo[A] private[react] (private[CallbackTo] val f: () => A) ex
338338 def isEmpty_? : Boolean =
339339 f eq Callback .empty.f
340340
341- // def flatMapUnlessEmpty(g: Callback => Callback)(implicit ev: This =:= Callback): Callback = {
342- // val c = ev(this)
343- // if (isEmpty_?) c else g(c)
344- // }
345-
346341 /**
347342 * Log to the console before this callback starts, and after it completes.
348343 *
@@ -468,32 +463,4 @@ final class CallbackTo[A] private[react] (private[CallbackTo] val f: () => A) ex
468463 */
469464 def ! (implicit ev : ThisIsBool ): CallbackB =
470465 ev(this ).map(! _)
471-
472- // /**
473- // * Sequence the given callback to be run when the result of this is `true`.
474- // *
475- // * The result is discarded.
476- // */
477- // def whenTrueRun[B](c: CallbackTo[B])(implicit ev: ThisIsBool): Callback =
478- // ev(this).map(a => if (a) c.f())
479- //
480- // /**
481- // * Alias for `whenTrueRun`.
482- // */
483- // @inline def ?>>[B](c: CallbackTo[B])(implicit ev: ThisIsBool): Callback =
484- // whenTrueRun(c)
485- //
486- // /**
487- // * Sequence the given callback to be run when the result of this is `true`.
488- // *
489- // * Returns the result wrapped in `Option`.
490- // */
491- // def whenTrue[B](c: CallbackTo[B])(implicit ev: ThisIsBool): CallbackTo[Option[B]] =
492- // ev(this).map(a => if (a) Some(c.f()) else None)
493- //
494- // /**
495- // * Alias for `whenTrue`.
496- // */
497- // @inline def ?>>?[B](c: CallbackTo[B])(implicit ev: ThisIsBool): CallbackTo[Option[B]] =
498- // whenTrue(c)
499466}
You can’t perform that action at this time.
0 commit comments