diff options
m--------- | gnuradio | 0 | ||||
-rw-r--r-- | include/gras/block.hpp | 5 | ||||
-rw-r--r-- | lib/block.cpp | 8 |
3 files changed, 1 insertions, 12 deletions
diff --git a/gnuradio b/gnuradio -Subproject 2ea57794854cc0ee121cac8d33c81e120c9ced0 +Subproject d1b3266170e47b6624f8aeb94e48f4be512b608 diff --git a/include/gras/block.hpp b/include/gras/block.hpp index 6ad162b..76ccd61 100644 --- a/include/gras/block.hpp +++ b/include/gras/block.hpp @@ -154,10 +154,7 @@ struct GRAS_API Block : Element //! Call during work to consume items void consume(const size_t which_input, const size_t how_many_items); - //! Call during work to consume items - void consume_each(const size_t how_many_items); - - //! Call during work to produce items, must return WORK_CALLED_PRODUCE + //! Call during work to produce items void produce(const size_t which_output, const size_t how_many_items); /******************************************************************* diff --git a/lib/block.cpp b/lib/block.cpp index 51c5f08..7afb96b 100644 --- a/lib/block.cpp +++ b/lib/block.cpp @@ -104,14 +104,6 @@ void Block::consume(const size_t which_input, const size_t how_many_items) (*this)->block->consume_items[which_input] += how_many_items; } -void Block::consume_each(const size_t how_many_items) -{ - for (size_t i = 0; i < (*this)->block->consume_items.size(); i++) - { - (*this)->block->consume_items[i] += how_many_items; - } -} - void Block::produce(const size_t which_output, const size_t how_many_items) { (*this)->block->produce_items[which_output] += how_many_items; |