From bbda203aef3864f8282dc8babd91aa217c93a404 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 14 Oct 2014 10:45:45 +0200 Subject: [PATCH] [CORE] Remove leftover unused constants --- .../java/org/elasticsearch/index/mapper/MapperService.java | 3 --- src/test/java/org/elasticsearch/test/InternalTestCluster.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/mapper/MapperService.java b/src/main/java/org/elasticsearch/index/mapper/MapperService.java index dd7a083da0e..12950b96a1a 100755 --- a/src/main/java/org/elasticsearch/index/mapper/MapperService.java +++ b/src/main/java/org/elasticsearch/index/mapper/MapperService.java @@ -86,9 +86,6 @@ public class MapperService extends AbstractIndexComponent { "_size", "_timestamp", "_ttl" ); - public static final String FIELD_MAPPERS_COLLECTION_SWITCH = "index.mapper.field_mappers_collection_switch"; - public static final int DEFAULT_FIELD_MAPPERS_COLLECTION_SWITCH = 100; - private final AnalysisService analysisService; private final IndexFieldDataService fieldDataService; diff --git a/src/test/java/org/elasticsearch/test/InternalTestCluster.java b/src/test/java/org/elasticsearch/test/InternalTestCluster.java index fecc9642565..f7b959abae7 100644 --- a/src/test/java/org/elasticsearch/test/InternalTestCluster.java +++ b/src/test/java/org/elasticsearch/test/InternalTestCluster.java @@ -400,9 +400,6 @@ public final class InternalTestCluster extends TestCluster { if (random.nextBoolean()) { builder.put(MappingUpdatedAction.INDICES_MAPPING_ADDITIONAL_MAPPING_CHANGE_TIME, RandomInts.randomIntBetween(random, 0, 500) /*milliseconds*/); } - if (random.nextBoolean()) { - builder.put(MapperService.DEFAULT_FIELD_MAPPERS_COLLECTION_SWITCH, RandomInts.randomIntBetween(random, 0, 5)); - } return builder.build(); }