From 48f03ad8eda56ca2cc510065f3bfee39b57659a6 Mon Sep 17 00:00:00 2001 From: Liang Zhang Date: Sat, 30 Nov 2024 18:33:29 +0800 Subject: [PATCH] Remove ShardingSphereSchema.getAllTables (#33850) --- .../database/schema/model/ShardingSphereSchema.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereSchema.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereSchema.java index 36e21e16ccf38..13532c699e989 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereSchema.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereSchema.java @@ -25,7 +25,6 @@ import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import java.util.stream.Collectors; /** * ShardingSphere schema. @@ -54,15 +53,6 @@ public ShardingSphereSchema(final String name, final Collection this.views.put(new ShardingSphereMetaDataIdentifier(each.getName()), each)); } - /** - * Get all table names. - * - * @return all table names - */ - public Collection getAllTableNames() { - return tables.keySet().stream().map(ShardingSphereMetaDataIdentifier::getValue).collect(Collectors.toSet()); - } - /** * Get all tables. *