This is an automated email from the ASF dual-hosted git repository.

engelen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new 27ec50686 remove unused function (#830)
27ec50686 is described below

commit 27ec50686d4029c8f8c5fe1791f9fca21052ee7b
Author: PJ Fanning <[email protected]>
AuthorDate: Tue Oct 7 17:11:00 2025 +0100

    remove unused function (#830)
---
 .../apache/pekko/http/impl/util/EnhancedString.scala | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git 
a/http-core/src/main/scala/org/apache/pekko/http/impl/util/EnhancedString.scala 
b/http-core/src/main/scala/org/apache/pekko/http/impl/util/EnhancedString.scala
index 7640789c8..b6c54431e 100644
--- 
a/http-core/src/main/scala/org/apache/pekko/http/impl/util/EnhancedString.scala
+++ 
b/http-core/src/main/scala/org/apache/pekko/http/impl/util/EnhancedString.scala
@@ -45,26 +45,6 @@ private[http] class EnhancedString(val underlying: String) 
extends AnyVal {
     split()
   }
 
-  /**
-   * Lazily splits the underlying string into the segments that are delimited 
by the given character.
-   * Only the segments that are actually accessed are computed.
-   * The delimiter itself is never a part of any segment. If the string does 
not contain the
-   * delimiter the result is a single-element stream containing only the 
underlying string.
-   * Note that this implementation differs from the original String.split(...) 
method in that
-   * leading and trailing delimiters are NOT ignored, i.e. they trigger the 
inclusion of an
-   * empty leading or trailing empty string (respectively).
-   */
-  def lazySplit(delimiter: Char): LazyList[String] = {
-    def split(start: Int = 0): LazyList[String] = {
-      val ix = underlying.indexOf(delimiter, start)
-      if (ix < 0)
-        LazyList.cons(underlying.substring(start), LazyList.empty[String])
-      else
-        LazyList.cons(underlying.substring(start, ix), split(ix + 1))
-    }
-    split()
-  }
-
   /**
    * Returns Some(String) if the underlying string is non-empty, None otherwise
    */


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to