From 4e48bc34a30f6671197294c99a259f1fcbc0bf8f Mon Sep 17 00:00:00 2001
From: Josh Morman <jmorman@perspectalabs.com>
Date: Mon, 15 Feb 2021 10:42:16 -0500
Subject: pybind: remove forecast from python bindings

There is no scenario that a block or app should be calling forecast over
the python interface.  This is only called by the scheduler, and for
python blocks would pass through the gateway interface.

Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
---
 gnuradio-runtime/python/gnuradio/gr/bindings/block_python.cc       | 7 -------
 gnuradio-runtime/python/gnuradio/gr/bindings/sync_block_python.cc  | 7 -------
 .../python/gnuradio/gr/bindings/sync_decimator_python.cc           | 7 -------
 .../python/gnuradio/gr/bindings/sync_interpolator_python.cc        | 7 -------
 .../python/gnuradio/gr/bindings/tagged_stream_block_python.cc      | 7 -------
 5 files changed, 35 deletions(-)

(limited to 'gnuradio-runtime/python/gnuradio')

diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/block_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/block_python.cc
index c180529028..78c5b03cfe 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/block_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/block_python.cc
@@ -66,13 +66,6 @@ void bind_block(py::module& m)
         .def("fixed_rate", &block::fixed_rate, D(block, fixed_rate))
 
 
-        .def("forecast",
-             &block::forecast,
-             py::arg("noutput_items"),
-             py::arg("ninput_items_required"),
-             D(block, forecast))
-
-
         .def("general_work",
              &block::general_work,
              py::arg("noutput_items"),
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/sync_block_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/sync_block_python.cc
index 1b5f3c00be..7a8d81de5f 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/sync_block_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/sync_block_python.cc
@@ -45,13 +45,6 @@ void bind_sync_block(py::module& m)
              D(sync_block, work))
 
 
-        .def("forecast",
-             &sync_block::forecast,
-             py::arg("noutput_items"),
-             py::arg("ninput_items_required"),
-             D(sync_block, forecast))
-
-
         .def("general_work",
              &sync_block::general_work,
              py::arg("noutput_items"),
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/sync_decimator_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/sync_decimator_python.cc
index 1eba9dfd7b..e9c940fbc9 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/sync_decimator_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/sync_decimator_python.cc
@@ -49,13 +49,6 @@ void bind_sync_decimator(py::module& m)
              D(sync_decimator, set_decimation))
 
 
-        .def("forecast",
-             &sync_decimator::forecast,
-             py::arg("noutput_items"),
-             py::arg("ninput_items_required"),
-             D(sync_decimator, forecast))
-
-
         .def("general_work",
              &sync_decimator::general_work,
              py::arg("noutput_items"),
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/sync_interpolator_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/sync_interpolator_python.cc
index f3e7375920..6d115f7f35 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/sync_interpolator_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/sync_interpolator_python.cc
@@ -52,13 +52,6 @@ void bind_sync_interpolator(py::module& m)
              D(sync_interpolator, set_interpolation))
 
 
-        .def("forecast",
-             &sync_interpolator::forecast,
-             py::arg("noutput_items"),
-             py::arg("ninput_items_required"),
-             D(sync_interpolator, forecast))
-
-
         .def("general_work",
              &sync_interpolator::general_work,
              py::arg("noutput_items"),
diff --git a/gnuradio-runtime/python/gnuradio/gr/bindings/tagged_stream_block_python.cc b/gnuradio-runtime/python/gnuradio/gr/bindings/tagged_stream_block_python.cc
index ba6a0ded02..c094486270 100644
--- a/gnuradio-runtime/python/gnuradio/gr/bindings/tagged_stream_block_python.cc
+++ b/gnuradio-runtime/python/gnuradio/gr/bindings/tagged_stream_block_python.cc
@@ -40,13 +40,6 @@ void bind_tagged_stream_block(py::module& m)
         m, "tagged_stream_block", D(tagged_stream_block))
 
 
-        .def("forecast",
-             &tagged_stream_block::forecast,
-             py::arg("noutput_items"),
-             py::arg("ninput_items_required"),
-             D(tagged_stream_block, forecast))
-
-
         .def("check_topology",
              &tagged_stream_block::check_topology,
              py::arg("ninputs"),
-- 
cgit v1.2.3