summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/config
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-01-24 16:07:49 +0100
committerJon Bratseth <bratseth@gmail.com>2022-01-24 16:07:49 +0100
commit4ee97e3a8b6a6be751f11e0f931029057a46664d (patch)
tree110569b31d13c1c0c5cde7c20fc6ff873d3fa482 /config-model/src/main/java/com/yahoo/config
parent1f4b84f037b82b3ab9c416b5e01416ef13b2e8cb (diff)
Simplify
Diffstat (limited to 'config-model/src/main/java/com/yahoo/config')
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/deploy/DeployState.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/deploy/DeployState.java b/config-model/src/main/java/com/yahoo/config/model/deploy/DeployState.java
index 7bc71556a22..fb7fa00ed88 100644
--- a/config-model/src/main/java/com/yahoo/config/model/deploy/DeployState.java
+++ b/config-model/src/main/java/com/yahoo/config/model/deploy/DeployState.java
@@ -481,12 +481,6 @@ public class DeployState implements ConfigDefinitionStore {
try {
String readerName = reader.getName();
String topLevelName = builder.importReader(reader, readerName);
- String sdName = stripSuffix(readerName, ApplicationPackage.SD_NAME_SUFFIX);
- if ( ! sdName.equals(topLevelName)) {
- throw new IllegalArgumentException("Schema file name ('" + sdName + "') and name of " +
- "top level element ('" + topLevelName +
- "') are not equal for file '" + readerName + "'");
- }
} catch (ParseException e) {
throw new IllegalArgumentException("Could not parse schema file '" + reader.getName() + "'", e);
} catch (IOException e) {
@@ -499,11 +493,6 @@ public class DeployState implements ConfigDefinitionStore {
return SearchDocumentModel.fromBuilder(builder);
}
- private static String stripSuffix(String nodeName, String postfix) {
- assert (nodeName.endsWith(postfix));
- return nodeName.substring(0, nodeName.length() - postfix.length());
- }
-
@SuppressWarnings("EmptyCatchBlock")
private static void closeIgnoreException(Reader reader) {
try {