From 88ad42bd84d05825255c035963afc29eeefcc79d Mon Sep 17 00:00:00 2001 From: Lei YU Date: Thu, 3 Aug 2017 17:29:41 +0800 Subject: Remove use_dhcp_ntp related code Dhcp ntp related functions are now implemented by new network daemon (phosphor-network-manager), so time manager does not need to handle the setting anymore. Remove all the code related to use_dhcp_ntp. Change-Id: Iea7f60dbe9558193585d3cd553dec15bbfe2aaa4 Signed-off-by: Lei YU --- manager.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'manager.hpp') diff --git a/manager.hpp b/manager.hpp index dc0885e..f9ee511 100644 --- a/manager.hpp +++ b/manager.hpp @@ -42,11 +42,6 @@ class Manager /** @brief Persistent sdbusplus DBus connection */ sdbusplus::bus::bus& bus; - /** @brief The match of settings property change */ - // TODO: This is to be removed when all properties are handled in - // new settings daemon - sdbusplus::bus::match::match propertyChangeMatch; - /** @brief The match of settings property change */ std::vector settingsMatches; @@ -80,17 +75,6 @@ class Manager /** @brief Check if host is on and update hostOn variable */ void checkHostOn(); - /** @brief Check if use_dhcp_ntp is used and update NTP setting */ - void checkDhcpNtp(); - - /** @brief Get setting from settingsd service - * - * @param[in] setting - The string of the setting - * - * @return The setting value in string - */ - std::string getSettings(const char* setting) const; - /** @brief Get setting from settingsd service * * @param[in] path - The dbus object path @@ -185,12 +169,6 @@ class Manager */ void updateNtpSetting(const std::string& value); - /** @brief Update dhcp_ntp setting to OpenBMC network service - * - * @param[in] value - The use_dhcp_ntp value, e.g. "yes" or "no" - */ - void updateDhcpNtpSetting(const std::string& useDhcpNtp); - /** @brief The static function called on settings property changed * * @param[in] msg - Data associated with subscribed signal @@ -217,9 +195,6 @@ class Manager /** @brief The string of time owner property */ static constexpr auto PROPERTY_TIME_OWNER = "TimeOwner"; - /** @brief The string of use dhcp ntp property */ - static constexpr auto PROPERTY_DHCP_NTP = "use_dhcp_ntp"; - using Updater = std::function; /** @brief Map the property string to functions that shall -- cgit v1.2.1