LUCENE-5952: remove dead writer.version parsing code

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1626551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-09-21 09:46:33 +00:00
parent f8a74cb587
commit 4950230f32
1 changed files with 0 additions and 8 deletions

View File

@ -75,8 +75,6 @@ public class CreateIndexTask extends PerfTask {
public CreateIndexTask(PerfRunData runData) { public CreateIndexTask(PerfRunData runData) {
super(runData); super(runData);
} }
public static IndexDeletionPolicy getIndexDeletionPolicy(Config config) { public static IndexDeletionPolicy getIndexDeletionPolicy(Config config) {
String deletionPolicyName = config.get("deletion.policy", "org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy"); String deletionPolicyName = config.get("deletion.policy", "org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy");
@ -101,12 +99,6 @@ public class CreateIndexTask extends PerfTask {
public static IndexWriterConfig createWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit) { public static IndexWriterConfig createWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit) {
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
Version version;
try {
version = Version.parseLeniently(config.get("writer.version", Version.LATEST.toString()));
} catch (ParseException pe) {
throw new IllegalArgumentException(pe);
}
IndexWriterConfig iwConf = new IndexWriterConfig(runData.getAnalyzer()); IndexWriterConfig iwConf = new IndexWriterConfig(runData.getAnalyzer());
iwConf.setOpenMode(mode); iwConf.setOpenMode(mode);
IndexDeletionPolicy indexDeletionPolicy = getIndexDeletionPolicy(config); IndexDeletionPolicy indexDeletionPolicy = getIndexDeletionPolicy(config);