From d71c4550e04f74b09fba0bbe8d7cd07dda68ba35 Mon Sep 17 00:00:00 2001
From: Josh Morman <jmorman@perspectalabs.com>
Date: Thu, 25 Mar 2021 10:28:09 -0400
Subject: analog: remove deprecated freq port

Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
---
 gr-analog/lib/sig_source_impl.cc | 17 -----------------
 1 file changed, 17 deletions(-)

(limited to 'gr-analog/lib/sig_source_impl.cc')

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>
@@ -66,20 +63,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)
 {
-- 
cgit v1.2.3