diff options
author | Lei YU <mine260309@gmail.com> | 2017-08-03 17:29:41 +0800 |
---|---|---|
committer | Lei YU <mine260309@gmail.com> | 2017-10-16 20:41:02 +0800 |
commit | 88ad42bd84d05825255c035963afc29eeefcc79d (patch) | |
tree | 8526aba151be8c6ab38f4338747941ca2d8e11b9 /manager.hpp | |
parent | 1c2ce82c0c3226a94aeefcc6ff2ddee170792ca0 (diff) | |
download | phosphor-time-manager-88ad42bd84d05825255c035963afc29eeefcc79d.tar.gz phosphor-time-manager-88ad42bd84d05825255c035963afc29eeefcc79d.zip |
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 <mine260309@gmail.com>
Diffstat (limited to 'manager.hpp')
-rw-r--r-- | manager.hpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/manager.hpp b/manager.hpp index dc0885e..f9ee511 100644 --- a/manager.hpp +++ b/manager.hpp @@ -43,11 +43,6 @@ class Manager 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<sdbusplus::bus::match::match> settingsMatches; /** @brief The match of pgood change */ @@ -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<void(const std::string&)>; /** @brief Map the property string to functions that shall |