diff --git a/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestInheritance.java b/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestInheritance.java index 5511341819f..fab3b9299a6 100644 --- a/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestInheritance.java +++ b/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestInheritance.java @@ -21,7 +21,6 @@ import java.util.regex.Matcher; import org.unicode.cldr.draft.ScriptMetadata; import org.unicode.cldr.draft.ScriptMetadata.Info; -import org.unicode.cldr.tool.GenerateMaximalLocales; import org.unicode.cldr.tool.LikelySubtags; import org.unicode.cldr.util.Builder; import org.unicode.cldr.util.CLDRConfig; @@ -886,50 +885,6 @@ public void TestCldrFileConsistency() { Matcher aliasMatcher = PatternCache.get("//ldml.*/alias.*").matcher(""); - private String minimize(Map likelySubtags, String locale) { - String result = GenerateMaximalLocales.minimize(locale, likelySubtags, false); - if (result == null) { - LanguageTagParser ltp3 = new LanguageTagParser().set(locale); - List variants = ltp3.getVariants(); - Map extensions = ltp3.getExtensions(); - Set emptySet = Collections.emptySet(); - ltp3.setVariants(emptySet); - Map emptyMap = Collections.emptyMap(); - ltp3.setExtensions(emptyMap); - String newLocale = ltp3.toString(); - result = GenerateMaximalLocales.minimize(newLocale, likelySubtags, false); - if (result != null) { - ltp3.set(result); - ltp3.setVariants(variants); - ltp3.setExtensions(extensions); - result = ltp3.toString(); - } - } - return result; - } - - private String maximize(Map likelySubtags, String locale) { - String result = GenerateMaximalLocales.maximize(locale, likelySubtags); - if (result == null) { - LanguageTagParser ltp3 = new LanguageTagParser().set(locale); - List variants = ltp3.getVariants(); - Map extensions = ltp3.getExtensions(); - Set emptySet = Collections.emptySet(); - ltp3.setVariants(emptySet); - Map emptyMap = Collections.emptyMap(); - ltp3.setExtensions(emptyMap); - String newLocale = ltp3.toString(); - result = GenerateMaximalLocales.maximize(newLocale, likelySubtags); - if (result != null) { - ltp3.set(result); - ltp3.setVariants(variants); - ltp3.setExtensions(extensions); - result = ltp3.toString(); - } - } - return result; - } - // TODO move this into central utilities public static boolean equals(CharSequence string, int codePoint) { if (string == null) {