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

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


The following commit(s) were added to refs/heads/main by this push:
     new bd78641  remove unused code (#345)
bd78641 is described below

commit bd78641025bb2c5dc508a6a993947b794ddb0a37
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Oct 10 15:01:08 2025 +0100

    remove unused code (#345)
    
    * remove unused code
    
    * Create remove-unused-util-code.excludes
---
 .../remove-unused-util-code.excludes               | 22 +++++++++++++++++++
 .../pekko/persistence/jdbc/util/ByteArrayOps.scala | 25 ----------------------
 .../pekko/persistence/jdbc/util/StringOps.scala    | 23 --------------------
 3 files changed, 22 insertions(+), 48 deletions(-)

diff --git 
a/core/src/main/mima-filters/2.0.x.backwards.excludes/remove-unused-util-code.excludes
 
b/core/src/main/mima-filters/2.0.x.backwards.excludes/remove-unused-util-code.excludes
new file mode 100644
index 0000000..61d970e
--- /dev/null
+++ 
b/core/src/main/mima-filters/2.0.x.backwards.excludes/remove-unused-util-code.excludes
@@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Remove unused util code
+ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.persistence.jdbc.util.ByteArrayOps")
+ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.persistence.jdbc.util.ByteArrayOps$*")
+ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.persistence.jdbc.util.StringOps")
+ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.persistence.jdbc.util.StringOps$*")
diff --git 
a/core/src/main/scala/org/apache/pekko/persistence/jdbc/util/ByteArrayOps.scala 
b/core/src/main/scala/org/apache/pekko/persistence/jdbc/util/ByteArrayOps.scala
deleted file mode 100644
index 65e0803..0000000
--- 
a/core/src/main/scala/org/apache/pekko/persistence/jdbc/util/ByteArrayOps.scala
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * license agreements; and to You under the Apache License, version 2.0:
- *
- *   https://www.apache.org/licenses/LICENSE-2.0
- *
- * This file is part of the Apache Pekko project, which was derived from Akka.
- */
-
-/*
- * Copyright (C) 2014 - 2019 Dennis Vriend <https://github.com/dnvriend>
- * Copyright (C) 2019 - 2021 Lightbend Inc. <https://www.lightbend.com>
- */
-
-package org.apache.pekko.persistence.jdbc.util
-
-import java.io.{ ByteArrayInputStream, InputStream }
-import java.util.Base64
-
-object ByteArrayOps {
-  implicit class ByteArrayImplicits(val that: Array[Byte]) extends AnyVal {
-    def encodeBase64: String = Base64.getEncoder.encodeToString(that)
-    def toInputStream: InputStream = new ByteArrayInputStream(that)
-  }
-}
diff --git 
a/core/src/main/scala/org/apache/pekko/persistence/jdbc/util/StringOps.scala 
b/core/src/main/scala/org/apache/pekko/persistence/jdbc/util/StringOps.scala
deleted file mode 100644
index ba797d9..0000000
--- a/core/src/main/scala/org/apache/pekko/persistence/jdbc/util/StringOps.scala
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * license agreements; and to You under the Apache License, version 2.0:
- *
- *   https://www.apache.org/licenses/LICENSE-2.0
- *
- * This file is part of the Apache Pekko project, which was derived from Akka.
- */
-
-/*
- * Copyright (C) 2014 - 2019 Dennis Vriend <https://github.com/dnvriend>
- * Copyright (C) 2019 - 2021 Lightbend Inc. <https://www.lightbend.com>
- */
-
-package org.apache.pekko.persistence.jdbc.util
-
-import java.util.Base64
-
-object StringOps {
-  implicit class StringImplicits(val that: String) extends AnyVal {
-    def toByteArray: Array[Byte] = Base64.getDecoder.decode(that)
-  }
-}


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

Reply via email to