remove unused method

This commit is contained in:
Jonathan Shook
2023-01-19 23:54:47 -06:00
parent 3e66317fc5
commit 71f2207c9b

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 nosqlbench * Copyright (c) 2022-2023 nosqlbench
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
package io.nosqlbench.api.config.standard; package io.nosqlbench.api.config.standard;
import io.nosqlbench.api.engine.activityimpl.ActivityDef;
import io.nosqlbench.api.errors.BasicError; import io.nosqlbench.api.errors.BasicError;
import java.math.BigDecimal; import java.math.BigDecimal;
@@ -47,14 +46,6 @@ public class ConfigModel implements NBConfigModel {
return new ConfigModel(ofType); return new ConfigModel(ofType);
} }
public static NBConfiguration defacto(ActivityDef def) {
ConfigModel configModel = new ConfigModel(Object.class);
for (Map.Entry<String, Object> entry : def.getParams().entrySet()) {
configModel.add(Param.defaultTo(entry.getKey(), entry.getValue().toString()));
}
return configModel.apply(def.getParams());
}
public <T> ConfigModel add(Param<T> param) { public <T> ConfigModel add(Param<T> param) {
this.params.add(param); this.params.add(param);
for (String name : param.getNames()) { for (String name : param.getNames()) {