Commit c88ab964 authored by Paul's avatar Paul
Browse files

Remove unused functions

parent 6870a7f1
......@@ -127,13 +127,6 @@ struct stream_info
bool has_stream(instruction_ref ins) const { return contains(ins2stream, ins); }
bool different(const std::vector<std::size_t>& v) const
{
if(v.size() < 2)
return false;
return not std::all_of(v.begin(), v.end(), [&](std::size_t x) { return x == v.front(); });
}
template <class F>
bool different(F f, std::size_t stream) const
{
......@@ -235,23 +228,6 @@ struct stream_info
return result;
}
std::vector<std::size_t> wait_for(instruction_ref ins) const
{
std::vector<std::size_t> result;
get_streams_from(ins, get_inputs())([&](auto s) {
result.push_back(s);
return true;
});
// Remove duplicates
std::sort(result.begin(), result.end());
result.erase(std::unique(result.begin(), result.end()), result.end());
// Remove the merged stream
auto it = std::find(result.begin(), result.end(), get_stream(ins));
if(it != result.end())
result.erase(it);
return result;
}
std::unordered_map<instruction_ref, std::vector<std::vector<instruction_ref>>>
find_concurrent_instructions(program& p)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment