This is an automated email from the ASF dual-hosted git repository.
sunnianjun 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 e06e854ba38 Remove useless codes (#31054)
e06e854ba38 is described below
commit e06e854ba38db9111a989bd271886acdbbf93ab4
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Apr 29 14:56:32 2024 +0800
Remove useless codes (#31054)
---
.../org/apache/shardingsphere/sharding/rule/ShardingRule.java | 8 --------
1 file changed, 8 deletions(-)
diff --git
a/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
b/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
index a51e40b2da6..ee2401b244c 100644
---
a/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
+++
b/features/sharding/core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
@@ -315,14 +315,6 @@ public final class ShardingRule implements DatabaseRule {
throw new
ShardingTableRuleNotFoundException(Collections.singleton(logicTableName));
}
- private ShardingTable getShardingTable(final String logicTableName, final
Map<String, ShardingTable> shardingTables) {
- ShardingTable result = shardingTables.get(logicTableName);
- if (null != result) {
- return result;
- }
- throw new
ShardingTableRuleNotFoundException(Collections.singleton(logicTableName));
- }
-
/**
* Judge whether logic table is all binding tables or not.
*