Skip to content

Commit 0c01ab4

Browse files
committed
chore: Remove unused attributes in Stages.
1 parent dc1fc69 commit 0c01ab4

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Remove unused attributes in Stages.
19+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.fused")
20+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.materializedValueSource")
21+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.concatAll")
22+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.processorWithKey")
23+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.concatSource")
24+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.concatMatSource")
25+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.actorPublisherSource")
26+
ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.stream.impl.Stages#DefaultAttributes.actorSubscriberSink")

stream/src/main/scala/org/apache/pekko/stream/impl/Stages.scala

-8
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ import pekko.stream.Attributes._
2929
val inputBufferOne = inputBuffer(initial = 1, max = 1)
3030

3131
// stage specific default attributes
32-
val fused = name("fused")
33-
val materializedValueSource = name("matValueSource")
3432
val map = name("map")
3533
val contramap = name("contramap")
3634
val dimap = name("dimap")
@@ -79,9 +77,7 @@ import pekko.stream.Attributes._
7977
val prefixAndTail = name("prefixAndTail")
8078
val flatMapPrefix = name("flatMapPrefix")
8179
val split = name("split")
82-
val concatAll = name("concatAll")
8380
val processor = name("processor")
84-
val processorWithKey = name("processorWithKey")
8581
val identityOp = name("identityOp")
8682
val delimiterFraming = name("delimiterFraming")
8783

@@ -131,10 +127,7 @@ import pekko.stream.Attributes._
131127
val maybeSource = name("MaybeSource")
132128
val neverSource = name("neverSource")
133129
val failedSource = name("failedSource")
134-
val concatSource = name("concatSource")
135-
val concatMatSource = name("concatMatSource")
136130
val subscriberSource = name("subscriberSource")
137-
val actorPublisherSource = name("actorPublisherSource")
138131
val actorRefSource = name("actorRefSource")
139132
val actorRefWithBackpressureSource = name("actorRefWithBackpressureSource")
140133
val queueSource = name("queueSource")
@@ -161,7 +154,6 @@ import pekko.stream.Attributes._
161154
val neverSink = name("neverSink")
162155
val actorRefSink = name("actorRefSink")
163156
val actorRefWithBackpressureSink = name("actorRefWithBackpressureSink")
164-
val actorSubscriberSink = name("actorSubscriberSink")
165157
val queueSink = name("queueSink")
166158
val lazySink = name("lazySink")
167159
val lazyFlow = name("lazyFlow")

0 commit comments

Comments
 (0)