You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2023/04/24 03:58:12 UTC
[shardingsphere] branch master updated: Remove useless codes (#25296)
This is an automated email from the ASF dual-hosted git repository.
panjuan 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 5c548019756 Remove useless codes (#25296)
5c548019756 is described below
commit 5c5480197565bafa78fda3c74bda174320f7fd27
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Mon Apr 24 11:58:05 2023 +0800
Remove useless codes (#25296)
---
.../bind/protocol/PostgreSQLByteConverter.java | 4 ----
.../yaml/YamlPipelineReadConfiguration.java | 24 ----------------------
2 files changed, 28 deletions(-)
diff --git a/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLByteConverter.java b/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLByteConverter.java
index f3fa8f475bf..d94089a73ac 100644
--- a/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLByteConverter.java
+++ b/db-protocol/postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/extended/bind/protocol/PostgreSQLByteConverter.java
@@ -390,10 +390,6 @@ public final class PostgreSQLByteConverter {
return index;
}
- public boolean isEmpty() {
- return 0 == index;
- }
-
public short pop() {
return index > 0 ? shorts[--index] : -1;
}
diff --git a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/api/config/process/yaml/YamlPipelineReadConfiguration.java b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/api/config/process/yaml/YamlPipelineReadConfiguration.java
index 83f455c1fc4..42650c13809 100644
--- a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/api/config/process/yaml/YamlPipelineReadConfiguration.java
+++ b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/api/config/process/yaml/YamlPipelineReadConfiguration.java
@@ -93,28 +93,4 @@ public final class YamlPipelineReadConfiguration implements YamlConfiguration {
rateLimiter = another.rateLimiter;
}
}
-
- /**
- * Set field to null.
- *
- * @param nodeName node name
- */
- public void setFieldNull(final String nodeName) {
- switch (nodeName.toUpperCase()) {
- case "WORKER_THREAD":
- workerThread = null;
- break;
- case "BATCH_SIZE":
- batchSize = null;
- break;
- case "SHARDING_SIZE":
- shardingSize = null;
- break;
- case "RATE_LIMITER":
- rateLimiter = null;
- break;
- default:
- break;
- }
- }
}