This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push:
new d03cff6e3 [SCB-2711]remove unused configuration
servicecomb.instance.properties.tags (#3438)
d03cff6e3 is described below
commit d03cff6e340fcd7d56489b20af7f87b77681c0c4
Author: liubao68 <[email protected]>
AuthorDate: Sat Oct 29 22:30:40 2022 +0800
[SCB-2711]remove unused configuration servicecomb.instance.properties.tags
(#3438)
---
.../java/org/apache/servicecomb/config/kie/KieConfig.java | 4 ----
.../org/apache/servicecomb/config/BootStrapProperties.java | 14 --------------
2 files changed, 18 deletions(-)
diff --git
a/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java
b/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java
index f0d1171a3..872165f51 100644
---
a/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java
+++
b/dynamic-config/config-kie/src/main/java/org/apache/servicecomb/config/kie/KieConfig.java
@@ -106,10 +106,6 @@ public class KieConfig {
return BootStrapProperties.readServiceName(finalConfig);
}
- public String getTags() {
- return BootStrapProperties.readServiceInstanceTags(finalConfig);
- }
-
public String getEnvironment() {
return BootStrapProperties.readServiceEnvironment(finalConfig);
}
diff --git
a/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/BootStrapProperties.java
b/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/BootStrapProperties.java
index e9199955c..2e882973a 100644
---
a/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/BootStrapProperties.java
+++
b/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/BootStrapProperties.java
@@ -63,8 +63,6 @@ public class BootStrapProperties {
public static final String OLD_CONFIG_SERVICE_INSTANCE_INITIAL_STATUS =
"instance_description.initialStatus";
- private static final String OLD_CONFIG_SERVICE_INSTANCE_TAGS =
"instance_description.properties.tags";
-
// service definition keys of new version
public static final String CONFIG_SERVICE_APPLICATION =
"servicecomb.service.application";
@@ -93,8 +91,6 @@ public class BootStrapProperties {
public static final String CONFIG_SERVICE_INSTANCE_INITIAL_STATUS =
"servicecomb.instance.initialStatus";
- private static final String CONFIG_SERVICE_INSTANCE_TAGS =
"servicecomb.instance.properties.tags";
-
// configuration default values
public static final String DEFAULT_APPLICATION = "default";
@@ -237,16 +233,6 @@ public class BootStrapProperties {
return readServiceInstanceInitialStatus(BootStrapProperties.configuration);
}
- public static String readServiceInstanceTags(Configuration configuration) {
- return readStringValue(configuration, CONFIG_SERVICE_INSTANCE_TAGS,
- OLD_CONFIG_SERVICE_INSTANCE_TAGS,
- null);
- }
-
- public static String readServiceInstanceTags() {
- return readServiceInstanceTags(BootStrapProperties.configuration);
- }
-
private static String readStringValue(Configuration configuration, String
newKey, String oldKey,
String defaultValue) {
String result = configuration.getString(newKey, null);