From 5495032b00aa6cbfed50a0f2ea757eca2329676d Mon Sep 17 00:00:00 2001 From: Julie Tibshirani Date: Tue, 17 Nov 2020 15:51:02 -0800 Subject: [PATCH] Remove unused method Analysis#isNoStopwords. --- .../main/java/org/elasticsearch/index/analysis/Analysis.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/index/analysis/Analysis.java b/server/src/main/java/org/elasticsearch/index/analysis/Analysis.java index d1a4f89fee9..3c23d36350e 100644 --- a/server/src/main/java/org/elasticsearch/index/analysis/Analysis.java +++ b/server/src/main/java/org/elasticsearch/index/analysis/Analysis.java @@ -95,11 +95,6 @@ public class Analysis { return org.elasticsearch.Version.indexCreated(indexSettings).luceneVersion; } - public static boolean isNoStopwords(Settings settings) { - String value = settings.get("stopwords"); - return value != null && "_none_".equals(value); - } - public static CharArraySet parseStemExclusion(Settings settings, CharArraySet defaultStemExclusion) { String value = settings.get("stem_exclusion"); if ("_none_".equals(value)) {