You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2023/02/04 05:20:29 UTC
[shardingsphere] branch master updated: Remove useless method of EncryptRule (#23992)
This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 6f7d56ac9cc Remove useless method of EncryptRule (#23992)
6f7d56ac9cc is described below
commit 6f7d56ac9cc055f8a067e48013b774b496d66242
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sat Feb 4 13:20:22 2023 +0800
Remove useless method of EncryptRule (#23992)
---
.../org/apache/shardingsphere/encrypt/rule/EncryptRule.java | 10 ----------
.../apache/shardingsphere/encrypt/rule/EncryptRuleTest.java | 5 -----
2 files changed, 15 deletions(-)
diff --git a/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptRule.java b/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptRule.java
index 4dcb140c13e..da3b3d7eb8a 100644
--- a/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptRule.java
+++ b/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptRule.java
@@ -222,16 +222,6 @@ public final class EncryptRule implements DatabaseRule, TableContainedRule {
return tables.containsKey(logicTable.toLowerCase()) ? tables.get(logicTable.toLowerCase()).getAssistedQueryColumns() : Collections.emptyList();
}
- /**
- * Get like query columns.
- *
- * @param logicTable logic table
- * @return like query columns
- */
- public Collection<String> getLikeQueryColumns(final String logicTable) {
- return tables.containsKey(logicTable.toLowerCase()) ? tables.get(logicTable.toLowerCase()).getLikeQueryColumns() : Collections.emptyList();
- }
-
/**
* Get encrypt assisted query values.
*
diff --git a/features/encrypt/core/src/test/java/org/apache/shardingsphere/encrypt/rule/EncryptRuleTest.java b/features/encrypt/core/src/test/java/org/apache/shardingsphere/encrypt/rule/EncryptRuleTest.java
index ecdc4c473e0..edd01e36c59 100644
--- a/features/encrypt/core/src/test/java/org/apache/shardingsphere/encrypt/rule/EncryptRuleTest.java
+++ b/features/encrypt/core/src/test/java/org/apache/shardingsphere/encrypt/rule/EncryptRuleTest.java
@@ -125,11 +125,6 @@ public final class EncryptRuleTest {
}
}
- @Test
- public void assertGetLikeQueryColumns() {
- assertFalse(new EncryptRule(createEncryptRuleConfiguration()).getLikeQueryColumns("t_encrypt").isEmpty());
- }
-
@Test
public void assertGetTables() {
assertThat(new EncryptRule(createEncryptRuleConfiguration()).getTables(), is(Collections.singleton("t_encrypt")));