Cleanup: Remove unused function

- Unused since 2010, removed in accordance with Paul's wishes.
This commit is contained in:
Wilhelm Schuermann 2015-05-31 16:41:57 +02:00
parent f4361d5c65
commit 5f8469269e
3 changed files with 0 additions and 46 deletions

View file

@ -209,45 +209,3 @@ void dependencyChainOnStart (Task& task)
}
////////////////////////////////////////////////////////////////////////////////
// Iff a dependency is being removed, is there something to do.
void dependencyChainOnModify (Task& before, Task& after)
{
// TODO It is not clear that this should even happen. TBD.
/*
// Get the dependencies from before.
std::string depends = before.get ("depends");
std::vector <std::string> before_depends;
split (before_depends, depends, ',');
std::cout << "# dependencyChainOnModify before has " << before_depends.size () << "\n";
// Get the dependencies from after.
depends = after.get ("depends");
std::vector <std::string> after_depends;
split (after_depends, depends, ',');
std::cout << "# dependencyChainOnModify after has " << after_depends.size () << "\n";
// listDiff
std::vector <std::string> before_only;
std::vector <std::string> after_only;
listDiff (before_depends, after_depends, before_only, after_only);
// Any dependencies in before_only indicates that a dependency was removed.
if (before_only.size ())
{
std::cout << "# dependencyChainOnModify detected a dependency removal\n";
// before dep:2,3
// after dep:2
//
// any tasks blocked by after might should be repaired to depend on 3.
std::vector <Task> blocked;
dependencyGetBlocked (after, blocked);
for (auto& b : blocked)
std::cout << "# dependencyChainOnModify\n";
}
*/
}
////////////////////////////////////////////////////////////////////////////////