Fix dashing breakage (#64)

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
eboasson 2019-11-07 09:33:17 +01:00 committed by GitHub
parent c168334087
commit 096d4643c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -614,13 +614,6 @@ static void node_gone_from_domain_locked(dds_domainid_t did)
{ {
static_cast<void>(did); static_cast<void>(did);
} }
static bool check_create_domain_locked(dds_domainid_t did, bool localhost_only)
{
static_cast<void>(did);
static_cast<void>(localhost_only);
return true;
}
#endif #endif
static std::string get_node_user_data(const char * node_name, const char * node_namespace) static std::string get_node_user_data(const char * node_name, const char * node_namespace)
@ -670,10 +663,10 @@ extern "C" rmw_node_t * rmw_create_node(
and tearing down the domain for versions of Cyclone that implement the original and tearing down the domain for versions of Cyclone that implement the original
version of dds_create_domain that doesn't return a handle. */ version of dds_create_domain that doesn't return a handle. */
std::lock_guard<std::mutex> lock(gcdds.domains_lock); std::lock_guard<std::mutex> lock(gcdds.domains_lock);
#endif
if (!check_create_domain_locked(did, localhost_only)) { if (!check_create_domain_locked(did, localhost_only)) {
return nullptr; return nullptr;
} }
#endif
dds_qos_t * qos = dds_create_qos(); dds_qos_t * qos = dds_create_qos();
std::string user_data = get_node_user_data(name, namespace_); std::string user_data = get_node_user_data(name, namespace_);