From fdccd4f577b963555a18deeb884e7dee36267171 Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Thu, 23 Apr 2020 22:42:30 +0200 Subject: [PATCH] Removed unused functions from utils --- daemon/utils.cpp | 16 +--------------- daemon/utils.hpp | 2 -- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/daemon/utils.cpp b/daemon/utils.cpp index 9f3dc60..54f446a 100644 --- a/daemon/utils.cpp +++ b/daemon/utils.cpp @@ -73,22 +73,8 @@ parse_url(const std::string& _url) { return std::make_tuple(host.length() > 0, protocol, host, port, path); } -std::string get_host_id() { - char hostname[64]; - gethostname(hostname, sizeof hostname); - std::stringstream ss; - ss << std::hex << (uint32_t)gethostid(); - return ss.str(); -} - -std::string get_host_name() { - char hostname[64]; - gethostname(hostname, sizeof hostname); - return hostname; -} - std::string get_node_id() { std::stringstream ss; - ss << "AES67 daemon " << get_host_id(); + ss << "AES67 daemon " << std::hex << (uint32_t)gethostid(); return ss.str(); } diff --git a/daemon/utils.hpp b/daemon/utils.hpp index 9af9e72..2f62f64 100644 --- a/daemon/utils.hpp +++ b/daemon/utils.hpp @@ -34,8 +34,6 @@ std::tuple parse_url(const std::string& _url); -std::string get_host_id(); -std::string get_host_name(); std::string get_node_id(); #endif