You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/11/22 21:30:28 UTC

(commons-dbcp) 02/03: Remove unused package-private constructor

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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git

commit 04fcba6aa2b41933f96f9dd7ce05f440ef863578
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 22 16:28:00 2024 -0500

    Remove unused package-private constructor
---
 .../commons/dbcp2/datasources/PooledConnectionAndInfo.java       | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbcp2/datasources/PooledConnectionAndInfo.java b/src/main/java/org/apache/commons/dbcp2/datasources/PooledConnectionAndInfo.java
index 04e066dd..01deb377 100644
--- a/src/main/java/org/apache/commons/dbcp2/datasources/PooledConnectionAndInfo.java
+++ b/src/main/java/org/apache/commons/dbcp2/datasources/PooledConnectionAndInfo.java
@@ -30,15 +30,6 @@ final class PooledConnectionAndInfo {
 
     private final UserPassKey userPassKey;
 
-    /**
-     * Constructs a new instance.
-     *
-     * @since 2.4.0
-     */
-    PooledConnectionAndInfo(final PooledConnection pooledConnection, final char[] userName, final char[] userPassword) {
-        this(pooledConnection, new UserPassKey(userName, userPassword));
-    }
-
     PooledConnectionAndInfo(final PooledConnection pooledConnection, final UserPassKey userPassKey) {
         this.pooledConnection = pooledConnection;
         this.userPassKey = userPassKey;