]> git.tdb.fi Git - builder.git/blobdiff - source/copy.h
Refactor transitive dependencies to work on all targets
[builder.git] / source / copy.h
diff --git a/source/copy.h b/source/copy.h
deleted file mode 100644 (file)
index 5f20c16..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef COPY_H_
-#define COPY_H_
-
-#include <msp/core/thread.h>
-#include <msp/fs/path.h>
-#include "internaltask.h"
-#include "tool.h"
-
-class InstalledFile;
-
-/**
-Copies a file to another place.  Used by the InstalledFile target.
-*/
-class Copy: public Tool
-{
-private:
-       /**
-       A worker thread that actually does the data transfer.
-       */
-       class Worker: public InternalTask::Worker
-       {
-       private:
-               const InstalledFile &target;
-
-       public:
-               Worker(const InstalledFile &);
-       private:
-               void main() override;
-       };
-
-public:
-       Copy(Builder &);
-
-       Target *create_target(const std::vector<Target *> &, const std::string &) override;
-       Task *run(const Target &) const override;
-};
-
-#endif