aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-16 22:20:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-16 22:20:18 +0200
commit29542865cee37ab22efe1bd142900b69f6c59f0d (patch)
tree0115a7d831276f14144aeaeae430e680e5ab0297 /src/libstore/path.hh
parentdf4da4f5da1e390ac1eef5bfd455a8cf85dfe52c (diff)
Remove StorePath::clone() and related functions
Diffstat (limited to 'src/libstore/path.hh')
-rw-r--r--src/libstore/path.hh36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/libstore/path.hh b/src/libstore/path.hh
index 85c3d8e53..aaebd3ec3 100644
--- a/src/libstore/path.hh
+++ b/src/libstore/path.hh
@@ -11,10 +11,6 @@ class StorePath
{
std::string baseName;
- StorePath(const StorePath & path)
- : baseName(path.baseName)
- { }
-
public:
/* Size of the hash part of store paths, in base-32 characters. */
@@ -26,16 +22,6 @@ public:
StorePath(const Hash & hash, std::string_view name);
- StorePath(StorePath && path)
- : baseName(std::move(path.baseName))
- { }
-
- StorePath & operator = (StorePath && path)
- {
- baseName = std::move(path.baseName);
- return *this;
- }
-
std::string_view to_string() const
{
return baseName;
@@ -56,11 +42,6 @@ public:
return baseName != other.baseName;
}
- StorePath clone() const
- {
- return StorePath(*this);
- }
-
/* Check whether a file name ends with the extension for
derivations. */
bool isDerivation() const;
@@ -81,11 +62,6 @@ public:
typedef std::set<StorePath> StorePathSet;
typedef std::vector<StorePath> StorePaths;
-StorePathSet cloneStorePathSet(const StorePathSet & paths);
-StorePathSet storePathsToSet(const StorePaths & paths);
-
-StorePathSet singleton(const StorePath & path);
-
/* Extension of derivations in the Nix store. */
const std::string drvExtension = ".drv";
@@ -99,18 +75,6 @@ struct StorePathWithOutputs
StorePath path;
std::set<std::string> outputs;
- StorePathWithOutputs(const StorePath & path, const std::set<std::string> & outputs = {})
- : path(path.clone()), outputs(outputs)
- { }
-
- StorePathWithOutputs(StorePath && path, std::set<std::string> && outputs)
- : path(std::move(path)), outputs(std::move(outputs))
- { }
-
- StorePathWithOutputs(const StorePathWithOutputs & other)
- : path(other.path.clone()), outputs(other.outputs)
- { }
-
std::string to_string(const Store & store) const;
};