|
1 | 1 | // Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
|
2 |
| -// Copyright (c) 2021 by Apex.AI Inc. All rights reserved. |
| 2 | +// Copyright (c) 2021 - 2023 by Apex.AI Inc. All rights reserved. |
3 | 3 | //
|
4 | 4 | // Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | // you may not use this file except in compliance with the License.
|
@@ -405,31 +405,6 @@ void iceoryx_init_message(
|
405 | 405 | }
|
406 | 406 | }
|
407 | 407 |
|
408 |
| -void iceoryx_init_message( |
409 |
| - const rosidl_service_type_support_t * type_supports, |
410 |
| - void * message) |
411 |
| -{ |
412 |
| - auto ts = get_type_support(type_supports); |
413 |
| - |
414 |
| - if (ts.first == TypeSupportLanguage::CPP) { |
415 |
| - auto members = |
416 |
| - static_cast<const rosidl_typesupport_introspection_cpp::ServiceMembers *>(ts.second->data); |
417 |
| - members->request_members_->init_function( |
418 |
| - message, |
419 |
| - rosidl_runtime_cpp::MessageInitialization::ALL); |
420 |
| - members->response_members_->init_function( |
421 |
| - message, |
422 |
| - rosidl_runtime_cpp::MessageInitialization::ALL); |
423 |
| - return; |
424 |
| - } else if (ts.first == TypeSupportLanguage::C) { |
425 |
| - auto members = |
426 |
| - static_cast<const rosidl_typesupport_introspection_c__ServiceMembers *>(ts.second->data); |
427 |
| - members->request_members_->init_function(message, ROSIDL_RUNTIME_C_MSG_INIT_ALL); |
428 |
| - members->response_members_->init_function(message, ROSIDL_RUNTIME_C_MSG_INIT_ALL); |
429 |
| - return; |
430 |
| - } |
431 |
| -} |
432 |
| - |
433 | 408 | void iceoryx_fini_message(
|
434 | 409 | const rosidl_message_type_support_t * type_supports,
|
435 | 410 | void * message)
|
|
0 commit comments