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.
      *