-str #21423 remove deprecated Stage references (#21919)

* -str #21423 remove deprecated Stage references

* include mima filters for removed classes
This commit is contained in:
Konrad Malawski 2016-12-02 14:23:13 +01:00 committed by GitHub
parent cc46d15381
commit 04ab4ebb9c
23 changed files with 210 additions and 1390 deletions

View file

@ -9,7 +9,6 @@ import akka.Done
import akka.stream.impl.StreamLayout.Module
import akka.stream.impl._
import akka.stream.impl.fusing._
import akka.stream.stage.AbstractStage.{ PushPullGraphStage, PushPullGraphStageWithMaterializedValue }
import akka.stream.stage._
import org.reactivestreams.{ Processor, Publisher, Subscriber, Subscription }
import scala.annotation.unchecked.uncheckedVariance
@ -1210,15 +1209,6 @@ trait FlowOps[+Out, +Mat] {
*/
def buffer(size: Int, overflowStrategy: OverflowStrategy): Repr[Out] = via(fusing.Buffer(size, overflowStrategy))
/**
* Generic transformation of a stream with a custom processing [[akka.stream.stage.Stage]].
* This operator makes it possible to extend the `Flow` API when there is no specialized
* operator that performs the transformation.
*/
@deprecated("Use via(GraphStage) instead.", "2.4.3")
def transform[T](mkStage: () Stage[Out, T]): Repr[T] =
via(new PushPullGraphStage((attr) mkStage(), Attributes.none))
/**
* Takes up to `n` elements from the stream (less than `n` only if the upstream completes before emitting `n` elements)
* and returns a pair containing a strict sequence of the taken element
@ -1965,9 +1955,6 @@ trait FlowOps[+Out, +Mat] {
*/
def async: Repr[Out]
/** INTERNAL API */
private[scaladsl] def andThen[T](op: SymbolicStage[Out, T]): Repr[T] =
via(SymbolicGraphStage(op))
}
/**
@ -2200,10 +2187,4 @@ trait FlowOpsMat[+Out, +Mat] extends FlowOps[Out, Mat] {
def monitor[Mat2]()(combine: (Mat, FlowMonitor[Out]) Mat2): ReprMat[Out, Mat2] =
viaMat(GraphStages.monitor)(combine)
/**
* INTERNAL API.
*/
private[akka] def transformMaterializing[T, M](mkStageAndMaterialized: () (Stage[Out, T], M)): ReprMat[T, M] =
viaMat(new PushPullGraphStageWithMaterializedValue[Out, T, NotUsed, M]((attr) mkStageAndMaterialized(), Attributes.none))(Keep.right)
}