@@ -25,46 +25,36 @@ std::unique_ptr<View> ViewFactory::Create(const std::string &name)
2525
2626std::unique_ptr<View> ViewFactory::Create (const std::string &name, const std::string &description)
2727{
28- return Create (name, description, " " , AggregationType::kDefault );
28+ return Create (name, description, AggregationType::kDefault );
2929}
3030
3131std::unique_ptr<View> ViewFactory::Create (const std::string &name,
3232 const std::string &description,
33- const std::string &unit)
34- {
35- return Create (name, description, unit, AggregationType::kDefault );
36- }
37-
38- std::unique_ptr<View> ViewFactory::Create (const std::string &name,
39- const std::string &description,
40- const std::string &unit,
4133 AggregationType aggregation_type)
4234{
4335 std::shared_ptr<AggregationConfig> aggregation_config (nullptr );
44- return Create (name, description, unit, aggregation_type, aggregation_config);
36+ return Create (name, description, aggregation_type, aggregation_config);
4537}
4638
4739std::unique_ptr<View> ViewFactory::Create (const std::string &name,
4840 const std::string &description,
49- const std::string &unit,
5041 AggregationType aggregation_type,
5142 std::shared_ptr<AggregationConfig> aggregation_config)
5243{
5344 auto attributes_processor =
5445 std::unique_ptr<AttributesProcessor>(new DefaultAttributesProcessor ());
5546
56- return Create (name, description, unit, aggregation_type, std::move (aggregation_config),
47+ return Create (name, description, aggregation_type, std::move (aggregation_config),
5748 std::move (attributes_processor));
5849}
5950
6051std::unique_ptr<View> ViewFactory::Create (const std::string &name,
6152 const std::string &description,
62- const std::string &unit,
6353 AggregationType aggregation_type,
6454 std::shared_ptr<AggregationConfig> aggregation_config,
6555 std::unique_ptr<AttributesProcessor> attributes_processor)
6656{
67- std::unique_ptr<View> view (new View (name, description, unit, aggregation_type,
57+ std::unique_ptr<View> view (new View (name, description, aggregation_type,
6858 std::move (aggregation_config),
6959 std::move (attributes_processor)));
7060 return view;
0 commit comments