Skip to content

Commit

Permalink
Remove unused LockFile::write()
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Oct 25, 2023
1 parent 95d657c commit 15c430f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/libexpr/flake/lockfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ std::ostream & operator <<(std::ostream & stream, const LockFile & lockFile)
return stream;
}

void LockFile::write(const Path & path) const
{
createDirs(dirOf(path));
writeFile(path, fmt("%s\n", *this));
}

std::optional<FlakeRef> LockFile::isUnlocked() const
{
std::set<ref<const Node>> nodes;
Expand Down
2 changes: 0 additions & 2 deletions src/libexpr/flake/lockfile.hh
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ struct LockFile

static LockFile read(const Path & path);

void write(const Path & path) const;

/**
* Check whether this lock file has any unlocked inputs.
*/
Expand Down

0 comments on commit 15c430f

Please sign in to comment.