This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 dbac9a8cd31 Remove unused code (#21123)
dbac9a8cd31 is described below
commit dbac9a8cd313120393d122847e42fa6f8fb89dce
Author: ZhangCheng <[email protected]>
AuthorDate: Thu Sep 22 09:44:31 2022 +0800
Remove unused code (#21123)
---
.../infra/datasource/state/DataSourceState.java | 20 --------------------
1 file changed, 20 deletions(-)
diff --git
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/state/DataSourceState.java
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/state/DataSourceState.java
index eae9e4a9164..9eaf5020dc2 100644
---
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/state/DataSourceState.java
+++
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/state/DataSourceState.java
@@ -37,26 +37,6 @@ public enum DataSourceState {
DATA_SOURCE_STATES.put(ENABLED.name().toLowerCase(), ENABLED);
}
- /**
- * Data source disable or enable.
- *
- * @param state data source state
- * @return disable or enable
- */
- public static boolean isDisable(final String state) {
- return DISABLED.name().equalsIgnoreCase(state);
- }
-
- /**
- * Data source disable or enable.
- *
- * @param state data source state
- * @return disable or enable
- */
- public static boolean isEnable(final String state) {
- return ENABLED.name().equalsIgnoreCase(state);
- }
-
/**
* Get data source state by state name.
*