summaryrefslogtreecommitdiff
path: root/gr-analog/lib/sig_source_impl.cc
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2021-03-25 10:28:09 -0400
committermormj <34754695+mormj@users.noreply.github.com>2021-04-21 14:02:57 -0400
commitd71c4550e04f74b09fba0bbe8d7cd07dda68ba35 (patch)
tree1b0f626d65d35927c1b2d346dc2be095a2e449c8 /gr-analog/lib/sig_source_impl.cc
parent8f9c66bf0b4099cd824745bbbdcde2285db78cf9 (diff)
analog: remove deprecated freq port
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-analog/lib/sig_source_impl.cc')
-rw-r--r--gr-analog/lib/sig_source_impl.cc17
1 files changed, 0 insertions, 17 deletions
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");