diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-03 06:11:09 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-03 06:11:09 +0100 |
commit | 1a6c67af3851748a0a604e3b3e99bd63f3f576a0 (patch) | |
tree | cdf4c0fe3ede4c4b966941a6bb3dd0af6ca0a769 /include/Dependency.hpp | |
parent | 396598030927a8e531bd68ba3b382f86645af6c6 (diff) |
Remove ability to use git projects as dependencies. Users can add them as git submodules instead
Diffstat (limited to 'include/Dependency.hpp')
-rw-r--r-- | include/Dependency.hpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/Dependency.hpp b/include/Dependency.hpp index f505503..4660a05 100644 --- a/include/Dependency.hpp +++ b/include/Dependency.hpp @@ -8,7 +8,6 @@ namespace sibs { class PackageListDependency; - class GitDependency; class Dependency { @@ -16,7 +15,6 @@ namespace sibs enum class Source { PACKAGE_LIST, - GIT }; virtual ~Dependency(){} @@ -28,12 +26,6 @@ namespace sibs assert(getSource() == Source::PACKAGE_LIST); return (PackageListDependency*)this; } - - const GitDependency* asGitDependency() const - { - assert(getSource() == Source::GIT); - return (GitDependency*)this; - } }; class PackageListDependency : public Dependency @@ -48,21 +40,6 @@ namespace sibs std::string name; PackageVersionRange version; }; - - class GitDependency : public Dependency - { - public: - virtual ~GitDependency(){} - virtual Source getSource() const - { - return Source::GIT; - } - - std::string name; - std::string url; - std::string branch; - std::string revision; - }; } #endif //SIBS_DEPENDENCY_HPP |