You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2023/08/03 07:14:21 UTC
[shardingsphere] branch master updated: Remove useless method (#27882)
This is an automated email from the ASF dual-hosted git repository.
panjuan 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 cbef6757090 Remove useless method (#27882)
cbef6757090 is described below
commit cbef6757090d4c38a2a422daef433666cce6add8
Author: ChenJiaHao <ch...@apache.org>
AuthorDate: Thu Aug 3 15:14:14 2023 +0800
Remove useless method (#27882)
---
.../handler/update/DropShardingTableRuleStatementUpdater.java | 8 --------
1 file changed, 8 deletions(-)
diff --git a/features/sharding/distsql/handler/src/main/java/org/apache/shardingsphere/sharding/distsql/handler/update/DropShardingTableRuleStatementUpdater.java b/features/sharding/distsql/handler/src/main/java/org/apache/shardingsphere/sharding/distsql/handler/update/DropShardingTableRuleStatementUpdater.java
index 27f8d808e47..a3f9bb3ab5e 100644
--- a/features/sharding/distsql/handler/src/main/java/org/apache/shardingsphere/sharding/distsql/handler/update/DropShardingTableRuleStatementUpdater.java
+++ b/features/sharding/distsql/handler/src/main/java/org/apache/shardingsphere/sharding/distsql/handler/update/DropShardingTableRuleStatementUpdater.java
@@ -165,14 +165,6 @@ public final class DropShardingTableRuleStatementUpdater implements RuleDefiniti
return currentRuleConfig.getAuditors().keySet().stream().filter(each -> !inUsedAuditors.contains(each)).collect(Collectors.toSet());
}
- private boolean isEmptyShardingTables(final ShardingRuleConfiguration currentRuleConfig) {
- return currentRuleConfig.getTables().isEmpty() && currentRuleConfig.getAutoTables().isEmpty();
- }
-
- private boolean isEmptyShardingStrategy(final ShardingRuleConfiguration currentRuleConfig) {
- return null == currentRuleConfig.getDefaultDatabaseShardingStrategy() && null == currentRuleConfig.getDefaultTableShardingStrategy();
- }
-
@Override
public Class<ShardingRuleConfiguration> getRuleConfigurationClass() {
return ShardingRuleConfiguration.class;