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

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 300b48f9523 Remove useless method on 
StorageContainerConfigurationFactory (#36461)
300b48f9523 is described below

commit 300b48f9523dd1a7ef0737489dc8ca86d0a1cafa
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Sep 3 11:00:20 2025 +0800

    Remove useless method on StorageContainerConfigurationFactory (#36461)
---
 .../StorageContainerConfigurationFactory.java      | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git 
a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/storage/config/StorageContainerConfigurationFactory.java
 
b/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/storage/config/StorageContainerConfigurationFactory.java
index 61d629c1558..4e151f62f8b 100644
--- 
a/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/storage/config/StorageContainerConfigurationFactory.java
+++ 
b/test/e2e/env/src/test/java/org/apache/shardingsphere/test/e2e/env/container/atomic/storage/config/StorageContainerConfigurationFactory.java
@@ -79,26 +79,4 @@ public final class StorageContainerConfigurationFactory {
                 throw new RuntimeException(String.format("Database `%s` is 
unknown.", databaseType.getType()));
         }
     }
-    
-    /**
-     * Create new instance of storage container configuration.
-     *
-     * @param databaseType database type
-     * @return created instance
-     * @throws RuntimeException runtime exception
-     */
-    public static StorageContainerConfiguration newInstance(final DatabaseType 
databaseType) {
-        switch (databaseType.getType()) {
-            case "MySQL":
-                return MySQLContainerConfigurationFactory.newInstance();
-            case "PostgreSQL":
-                return PostgreSQLContainerConfigurationFactory.newInstance();
-            case "openGauss":
-                return OpenGaussContainerConfigurationFactory.newInstance();
-            case "H2":
-                return H2ContainerConfigurationFactory.newInstance();
-            default:
-                throw new RuntimeException(String.format("Database `%s` is 
unknown.", databaseType.getType()));
-        }
-    }
 }

Reply via email to