summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Mamykin (GitHub) <ymamykin@luxoft.com>2019-10-15 18:14:08 +0300
committerYarik <ymamykin@gmail.com>2019-11-15 15:19:04 +0200
commite9e9144e23c124a0cc381d6bc1df8875f07c567a (patch)
tree3d63b7cbb9851fe808b1c54fb71b198794ba39f0
parentb03c9aabe33971e8d15a44d8cf62542962cff88a (diff)
downloadsdl_core-e9e9144e23c124a0cc381d6bc1df8875f07c567a.tar.gz
fixup! Fix versioning appliance for vehicle data
-rw-r--r--src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/custom_vehicle_data_manager_impl.cc29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/custom_vehicle_data_manager_impl.cc b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/custom_vehicle_data_manager_impl.cc
index d8a0b3abbb..f613f3b0c9 100644
--- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/custom_vehicle_data_manager_impl.cc
+++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/custom_vehicle_data_manager_impl.cc
@@ -348,34 +348,7 @@ void CustomVehicleDataManagerImpl::UpdateVehicleDataItems() {
);
}
case SMemberType::SMEMBER_HMI: {
- std::function<VehicleDataItem(const VehicleDataItem&)>
- remove_validation_params;
- remove_validation_params =
- [&remove_validation_params](
- const VehicleDataItem& vd_item) -> VehicleDataItem {
- VehicleDataItem result;
- result.since = vd_item.since;
- result.until = vd_item.until;
- result.key = vd_item.key;
- result.name = vd_item.name;
- result.type = vd_item.type;
- result.array = vd_item.array;
- result.removed = vd_item.removed;
- result.deprecated = vd_item.deprecated;
- result.mark_initialized();
-
- if (vd_item.params->is_initialized()) {
- for (const auto& param : *vd_item.params) {
- result.params->push_back(remove_validation_params(param));
- }
- result.params->mark_initialized();
- }
-
- return result;
- };
-
- auto processed_item = remove_validation_params(item);
- TSchemaItemParameter<VehicleDataItem> tschema_item(processed_item);
+ TSchemaItemParameter<VehicleDataItem> tschema_item(item);
auto member_schema = VehicleDataItemSchema::create(
tschema_item, VehicleDataItemSchema::SchemaType::HMI);
return SMember(