From 0865d999f90755cf624f1b4798d74c0376048989 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 16 Dec 2012 02:11:41 -0800 Subject: no need for topology_init state var --- lib/block.cpp | 3 --- lib/gras_impl/block_actor.hpp | 2 -- lib/topology_handler.cpp | 1 - 3 files changed, 6 deletions(-) diff --git a/lib/block.cpp b/lib/block.cpp index c305d4c..7775f53 100644 --- a/lib/block.cpp +++ b/lib/block.cpp @@ -33,7 +33,6 @@ Block::Block(const std::string &name): (*this)->block->name = name; //for debug purposes //setup some state variables - (*this)->block->topology_init = false; (*this)->block->block_ptr = this; (*this)->block->block_state = BlockActor::BLOCK_STATE_INIT; @@ -72,7 +71,6 @@ InputPortConfig Block::get_input_config(const size_t which_input) const void Block::set_input_config(const size_t which_input, const InputPortConfig &config) { vector_set((*this)->block->input_configs, config, which_input); - if ((*this)->block->topology_init) { InputUpdateMessage message; message.index = which_input; @@ -88,7 +86,6 @@ OutputPortConfig Block::get_output_config(const size_t which_output) const void Block::set_output_config(const size_t which_output, const OutputPortConfig &config) { vector_set((*this)->block->output_configs, config, which_output); - if ((*this)->block->topology_init) { OutputUpdateMessage message; message.index = which_output; diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp index ab75367..a490583 100644 --- a/lib/gras_impl/block_actor.hpp +++ b/lib/gras_impl/block_actor.hpp @@ -156,8 +156,6 @@ struct BlockActor : Apology::Worker long buffer_affinity; std::vector > output_allocation_hints; - - bool topology_init; }; } //namespace gras diff --git a/lib/topology_handler.cpp b/lib/topology_handler.cpp index 0dcdbfb..f813b57 100644 --- a/lib/topology_handler.cpp +++ b/lib/topology_handler.cpp @@ -79,7 +79,6 @@ void BlockActor::handle_topology( this->mark_done(); } - this->topology_init = true; for (size_t i = 0; i < num_inputs; i++) { InputUpdateMessage message; -- cgit