commit | e06e854ba38db9111a989bd271886acdbbf93ab4 | [log] [tgz] |
---|---|---|
author | Liang Zhang <zhangliang@apache.org> | Mon Apr 29 14:56:32 2024 +0800 |
committer | GitHub <noreply@github.com> | Mon Apr 29 14:56:32 2024 +0800 |
tree | bb7a4ceea49863ecc281cc471faeae62121c17ba | |
parent | 47ece1c1b72be7b8ae572e731c4301eefba6f547 [diff] |
Remove useless codes (#31054)
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 a51e40b..ee2401b 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 @@ 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. *