]> git.tdb.fi Git - builder.git/blobdiff - source/toolchain.cpp
Refactor transitive dependencies to work on all targets
[builder.git] / source / toolchain.cpp
diff --git a/source/toolchain.cpp b/source/toolchain.cpp
deleted file mode 100644 (file)
index cdbc7aa..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#include <msp/core/maputils.h>
-#include "tool.h"
-#include "toolchain.h"
-
-using namespace std;
-using namespace Msp;
-
-Toolchain::~Toolchain()
-{
-       for(ToolMap::iterator i=tools.begin(); i!=tools.end(); ++i)
-               delete i->second;
-}
-
-void Toolchain::add_tool(Tool *tool)
-{
-       insert_unique(tools, tool->get_tag(), tool);
-}
-
-const Tool &Toolchain::get_tool(const string &tag) const
-{
-       return *get_item(tools, tag);
-}
-
-const Tool *Toolchain::get_tool_for_suffix(const string &suffix, bool aux) const
-{
-       for(ToolMap::const_iterator i=tools.begin(); i!=tools.end(); ++i)
-               if(i->second->accepts_suffix(suffix, aux))
-                       return i->second;
-
-       return 0;
-}