Skip to content

Commit

Permalink
remove deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed Jun 19, 2024
1 parent 6fe477b commit 079f704
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions colibri/src/main/scala/colibri/Observable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,6 @@ object Observable {

def to(sink: Observer[A]): Observable[Unit] = via(sink).void

@deprecated("Use tap instead", "0.7.8")
def foreach_(f: A => Unit): Observable[Unit] = via(Observer.create(f)).void

def subscribing[B](f: Observable[B]): Observable[A] = tapSubscribe(() => f.unsafeSubscribe())

def map[B](f: A => B): Observable[B] = new Observable[B] {
Expand Down Expand Up @@ -523,12 +520,6 @@ object Observable {
def unsafeSubscribe(sink: Observer[A]): Cancelable = source.unsafeSubscribe(sink.contrafilter(f))
}

@deprecated("Use scan instead", "0.7.8")
def scanToList: Observable[List[A]] = scan(List.empty[A])((list, x) => x :: list)

@deprecated("Use scan0 instead", "0.7.8")
def scan0ToList: Observable[List[A]] = scan0(List.empty[A])((list, x) => x :: list)

def scan0[B](seed: => B)(f: (B, A) => B): Observable[B] = scan(seed)(f).prependEval(seed)

def scan[B](seed: => B)(f: (B, A) => B): Observable[B] = new Observable[B] {
Expand Down

0 comments on commit 079f704

Please sign in to comment.