mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
remove unused method
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022 nosqlbench
|
||||
* Copyright (c) 2022-2023 nosqlbench
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package io.nosqlbench.api.config.standard;
|
||||
|
||||
import io.nosqlbench.api.engine.activityimpl.ActivityDef;
|
||||
import io.nosqlbench.api.errors.BasicError;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@@ -47,14 +46,6 @@ public class ConfigModel implements NBConfigModel {
|
||||
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) {
|
||||
this.params.add(param);
|
||||
for (String name : param.getNames()) {
|
||||
|
||||
Reference in New Issue
Block a user