diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2021-03-25 10:28:09 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-04-21 14:02:57 -0400 |
commit | d71c4550e04f74b09fba0bbe8d7cd07dda68ba35 (patch) | |
tree | 1b0f626d65d35927c1b2d346dc2be095a2e449c8 /gr-analog | |
parent | 8f9c66bf0b4099cd824745bbbdcde2285db78cf9 (diff) |
analog: remove deprecated freq port
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-analog')
-rw-r--r-- | gr-analog/grc/analog_sig_source_x.block.yml | 4 | ||||
-rw-r--r-- | gr-analog/lib/sig_source_impl.cc | 17 | ||||
-rw-r--r-- | gr-analog/lib/sig_source_impl.h | 2 |
3 files changed, 0 insertions, 23 deletions
diff --git a/gr-analog/grc/analog_sig_source_x.block.yml b/gr-analog/grc/analog_sig_source_x.block.yml index 559107dc75..633a28106e 100644 --- a/gr-analog/grc/analog_sig_source_x.block.yml +++ b/gr-analog/grc/analog_sig_source_x.block.yml @@ -44,10 +44,6 @@ inputs: id: cmd optional: true -- domain: message - id: freq - optional: true - outputs: - domain: stream dtype: ${ type } diff --git a/gr-analog/lib/sig_source_impl.cc b/gr-analog/lib/sig_source_impl.cc index 55a4e14510..3d4afadcbe 100644 --- a/gr-analog/lib/sig_source_impl.cc +++ b/gr-analog/lib/sig_source_impl.cc @@ -56,9 +56,6 @@ sig_source_impl<T>::sig_source_impl(double sampling_freq, this->message_port_register_in(pmt::mp("cmd")); this->set_msg_handler(pmt::mp("cmd"), [this](pmt::pmt_t msg) { this->set_cmd_msg(msg); }); - this->message_port_register_in(pmt::mp("freq")); - this->set_msg_handler(pmt::mp("freq"), - [this](pmt::pmt_t msg) { this->set_freq_msg(msg); }); } template <class T> @@ -67,20 +64,6 @@ sig_source_impl<T>::~sig_source_impl() } template <class T> -void sig_source_impl<T>::set_freq_msg(pmt::pmt_t msg) -{ - GR_LOG_INFO(this->d_logger, - "The `freq` port is deprecated and will be removed. Forwarding this " - "message to the `cmd` handler."); - if (pmt::is_number(msg)) { - // if plain number, then interpret it as frequency - set_frequency(pmt::to_double(msg)); - return; - } - set_cmd_msg(msg); -} - -template <class T> void sig_source_impl<T>::set_cmd_msg(pmt::pmt_t msg) { static auto freq_key = pmt::intern("freq"); diff --git a/gr-analog/lib/sig_source_impl.h b/gr-analog/lib/sig_source_impl.h index d73c51de68..aaab545487 100644 --- a/gr-analog/lib/sig_source_impl.h +++ b/gr-analog/lib/sig_source_impl.h @@ -54,8 +54,6 @@ public: void set_waveform(gr_waveform_t waveform) override; // Message handlers - //!\brief deprecated handler. Use "cmd" port instead. - void set_freq_msg(pmt::pmt_t msg); void set_cmd_msg(pmt::pmt_t msg); void set_frequency(double frequency) override; |