From 52204759414e2f4ab00691bad55c26b78714e920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Tue, 25 Oct 2022 21:46:43 -0400 Subject: [PATCH] preferences: remove useless preferences Change-Id: I55fae603c65350adfec658cf73768a9535d614d3 --- src/preferences.cpp | 7 ------- src/preferences.h | 8 -------- 2 files changed, 15 deletions(-) diff --git a/src/preferences.cpp b/src/preferences.cpp index 86dcea4f65..649dd612a1 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -96,8 +96,6 @@ constexpr const char* const VoipPreference::CONFIG_LABEL; static constexpr const char* PLAY_DTMF_KEY {"playDtmf"}; static constexpr const char* PLAY_TONES_KEY {"playTones"}; static constexpr const char* PULSE_LENGTH_KEY {"pulseLength"}; -static constexpr const char* SYMMETRIC_RTP_KEY {"symmetric"}; -static constexpr const char* ZID_FILE_KEY {"zidFile"}; // audio preferences constexpr const char* const AudioPreference::CONFIG_LABEL; @@ -242,7 +240,6 @@ VoipPreference::VoipPreference() : playDtmf_(true) , playTones_(true) , pulseLength_(PULSE_LENGTH_DEFAULT) - , symmetricRtp_(true) {} void @@ -252,8 +249,6 @@ VoipPreference::serialize(YAML::Emitter& out) const out << YAML::Key << PLAY_DTMF_KEY << YAML::Value << playDtmf_; out << YAML::Key << PLAY_TONES_KEY << YAML::Value << playTones_; out << YAML::Key << PULSE_LENGTH_KEY << YAML::Value << pulseLength_; - out << YAML::Key << SYMMETRIC_RTP_KEY << YAML::Value << symmetricRtp_; - out << YAML::Key << ZID_FILE_KEY << YAML::Value << zidFile_; out << YAML::EndMap; } @@ -264,8 +259,6 @@ VoipPreference::unserialize(const YAML::Node& in) parseValue(node, PLAY_DTMF_KEY, playDtmf_); parseValue(node, PLAY_TONES_KEY, playTones_); parseValue(node, PULSE_LENGTH_KEY, pulseLength_); - parseValue(node, SYMMETRIC_RTP_KEY, symmetricRtp_); - parseValue(node, ZID_FILE_KEY, zidFile_); } AudioPreference::AudioPreference() diff --git a/src/preferences.h b/src/preferences.h index 2ab1e581bc..452f4d5066 100644 --- a/src/preferences.h +++ b/src/preferences.h @@ -123,18 +123,10 @@ public: void setPulseLength(int length) { pulseLength_ = length; } - bool getSymmetricRtp() const { return symmetricRtp_; } - void setSymmetricRtp(bool sym) { symmetricRtp_ = sym; } - - std::string getZidFile() const { return zidFile_; } - void setZidFile(const std::string& file) { zidFile_ = file; } - private: bool playDtmf_; bool playTones_; int pulseLength_; - bool symmetricRtp_; - std::string zidFile_; constexpr static const char* const CONFIG_LABEL = "voipPreferences"; }; -- GitLab