@@ -93,40 +93,6 @@ trait Map[K, +V]
9393/** Map operations for strict maps. */
9494transparent trait StrictMapOps [K , + V , + CC [_, _] <: IterableOps [_, AnyConstr , _] with caps.Pure , + C ]
9595 extends MapOps [K , V , CC , C ] with caps.Pure {
96-
97- override def mapFactory : StrictMapFactory [CC ]
98- override protected def fromSpecific (coll : IterableOnce [(K , V ) @ uncheckedVariance]^ ): C
99-
100- @ `inline` override protected def mapFromIterable [K2 , V2 ](it : Iterable [(K2 , V2 )]^ ): CC [K2 , V2 ] = mapFactory.from(it)
101-
102- override def map [K2 , V2 ](f : ((K , V )) => (K2 , V2 )): CC [K2 , V2 ] = mapFactory.from(new View .Map (this , f))
103-
104- override def collect [K2 , V2 ](pf : PartialFunction [(K , V ), (K2 , V2 )]^ ): CC [K2 , V2 ] =
105- mapFactory.from(new View .Collect (this , pf))
106-
107- override def flatMap [K2 , V2 ](f : ((K , V )) => IterableOnce [(K2 , V2 )]^ ): CC [K2 , V2 ] = mapFactory.from(new View .FlatMap (this , f))
108-
109- override def concat [V2 >: V ](suffix : collection.IterableOnce [(K , V2 )]^ ): CC [K , V2 ] = mapFactory.from(suffix match {
110- case it : Iterable [(K , V2 )] => new View .Concat (this , it)
111- case _ => iterator.concat(suffix.iterator)
112- })
113-
114- override def ++ [V2 >: V ](xs : collection.IterableOnce [(K , V2 )]^ ): CC [K , V2 ] = concat(xs)
115-
116- @ `inline` override def -- (keys : IterableOnce [K ]^ ): C = {
117- lazy val keysSet = keys.iterator.to(immutable.Set )
118- fromSpecific(this .view.filterKeys(k => ! keysSet.contains(k)))
119- }
120-
121- @ deprecated(" Use ++ instead of ++: for collections of type Iterable" , " 2.13.0" )
122- override def ++: [V1 >: V ](that : IterableOnce [(K ,V1 )]^ ): CC [K ,V1 ] = {
123- val thatIterable : Iterable [(K , V1 )]^ {that} = that match {
124- case that : Iterable [(K , V1 )] => that
125- case that => View .from(that)
126- }
127- mapFactory.from(new View .Concat (thatIterable, this ))
128- }
129-
13096 // The original keySet implementation, with a lazy iterator over the keys,
13197 // is only correct if we have a strict Map.
13298 // We restore it here.
0 commit comments