Skip to content

Commit

Permalink
Merge pull request #9197 from obsidiansystems/delete-dead-code
Browse files Browse the repository at this point in the history
Delete dead code
  • Loading branch information
Ericson2314 authored Oct 20, 2023
2 parents 85e5ac4 + 862d164 commit 81ed1d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions src/libstore/build/local-derivation-goal.hh
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ struct LocalDerivationGoal : public DerivationGoal
*/
OutputPathMap scratchOutputs;

/**
* Path registration info from the previous round, if we're
* building multiple times. Since this contains the hash, it
* allows us to compare whether two rounds produced the same
* result.
*/
std::map<Path, ValidPathInfo> prevInfos;

uid_t sandboxUid() { return usingUserNamespace ? (!buildUser || buildUser->getUIDCount() == 1 ? 1000 : 0) : buildUser->getUID(); }
gid_t sandboxGid() { return usingUserNamespace ? (!buildUser || buildUser->getUIDCount() == 1 ? 100 : 0) : buildUser->getGID(); }

Expand Down
8 changes: 0 additions & 8 deletions src/libstore/path-info.hh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ struct ValidPathInfo
*/
std::optional<ContentAddress> ca;

bool operator == (const ValidPathInfo & i) const
{
return
path == i.path
&& narHash == i.narHash
&& references == i.references;
}

/**
* Return a fingerprint of the store path to be used in binary
* cache signatures. It contains the store path, the base-32
Expand Down

0 comments on commit 81ed1d5

Please sign in to comment.