summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2012-12-16 02:11:41 -0800
committerJosh Blum2012-12-16 02:11:41 -0800
commit0865d999f90755cf624f1b4798d74c0376048989 (patch)
tree7811b8b55763833841d6d861693ca232dd895205
parent36b746eb1c43068b999fa56d52aa0d8994dd6ef9 (diff)
downloadsandhi-0865d999f90755cf624f1b4798d74c0376048989.tar.gz
sandhi-0865d999f90755cf624f1b4798d74c0376048989.tar.bz2
sandhi-0865d999f90755cf624f1b4798d74c0376048989.zip
no need for topology_init state var
-rw-r--r--lib/block.cpp3
-rw-r--r--lib/gras_impl/block_actor.hpp2
-rw-r--r--lib/topology_handler.cpp1
3 files changed, 0 insertions, 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<std::vector<OutputHintMessage> > 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;