Skip to content

Commit

Permalink
clean rmw_node diff
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelarguedas committed May 3, 2018
1 parent ad52d4e commit f2a85c3
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions rmw_fastrtps_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "rcutils/filesystem.h"
#include "rcutils/logging_macros.h"
#include "rcutils/get_env.h"

#include "rmw/allocators.h"
#include "rmw/error_handling.h"
Expand Down Expand Up @@ -47,8 +46,6 @@
#include "rmw_fastrtps_cpp/identifier.hpp"
#include "rmw_fastrtps_cpp/custom_participant_info.hpp"

#define ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME "ROS_SECURITY_ROOT_DIRECTORY"

using Domain = eprosima::fastrtps::Domain;
using Participant = eprosima::fastrtps::Participant;
using ParticipantAttributes = eprosima::fastrtps::ParticipantAttributes;
Expand Down Expand Up @@ -199,18 +196,7 @@ get_security_file_paths(
std::string file_prefix("file://");

for (size_t i = 0; i < num_files; i++) {
char * file_path;

if (i != 3) {
file_path = rcutils_join_path(node_secure_root, file_names[i]);
} else {
const char * ros_secure_root_env = NULL;
if (rcutils_get_env(ROS_SECURITY_ROOT_DIRECTORY_VAR_NAME, &ros_secure_root_env) == NULL) {
file_path = rcutils_join_path(ros_secure_root_env, file_names[i]);
} else {
return false;
}
}
char * file_path = rcutils_join_path(node_secure_root, file_names[i]);

if (!file_path) {
return false;
Expand Down

0 comments on commit f2a85c3

Please sign in to comment.