1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-04 16:10:59 +01:00

Merge InputAccessor into SourceAccessor

After the removal of the InputAccessor::fetchToStore() method, the
only remaining functionality in InputAccessor was `fingerprint` and
`getLastModified()`, and there is no reason to keep those in a
separate class.
This commit is contained in:
Eelco Dolstra 2024-05-03 12:14:01 +02:00
parent 00ca2b05b8
commit ba5929c7be
35 changed files with 130 additions and 188 deletions

View file

@ -1,6 +1,5 @@
#pragma once
#include "input-accessor.hh"
#include "source-path.hh"
namespace nix {
@ -8,11 +7,11 @@ namespace nix {
class StorePath;
class Store;
ref<InputAccessor> makeFSInputAccessor();
ref<SourceAccessor> makeFSInputAccessor();
ref<InputAccessor> makeFSInputAccessor(std::filesystem::path root);
ref<SourceAccessor> makeFSInputAccessor(std::filesystem::path root);
ref<InputAccessor> makeStorePathAccessor(
ref<SourceAccessor> makeStorePathAccessor(
ref<Store> store,
const StorePath & storePath);