]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Do dependency discovery in a single pass
[builder.git] / source / target.h
index d0e68f50588da69decb51b556dd633be63529c05..d6ed43860315b1508356d66024d8852258f70af7 100644 (file)
@@ -45,7 +45,6 @@ protected:
        std::string install_location;
 
        Dependencies depends;
-       bool deps_ready;
 
        Target(Builder &, const std::string &);
 public:
@@ -81,13 +80,9 @@ public:
        const std::string &get_install_location() const { return install_location; }
        void add_depend(Target *);
        const Dependencies &get_depends() const { return depends; }
-       bool get_depends_ready() const { return deps_ready; }
 
-       /**
-       Finds dependencies for the target.  When all dependencies have been found,
-       the function should set deps_ready to true.
-       */
-       virtual void find_depends() { deps_ready = true; }
+       /** Finds dependencies for the target. */
+       virtual void find_depends() { }
 
        /**
        Prepares the target by recursively preparing dependencies, then checking