mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Organize and format code a bit
This commit is contained in:
parent
45b6fdb22b
commit
1dfcbebc95
2 changed files with 17 additions and 16 deletions
|
@ -31,7 +31,6 @@ template<> StorePathSet readStorePaths(const Store & store, Source & from)
|
|||
return paths;
|
||||
}
|
||||
|
||||
|
||||
void writeStorePaths(const Store & store, Sink & out, const StorePathSet & paths)
|
||||
{
|
||||
out << paths.size();
|
||||
|
@ -39,11 +38,6 @@ void writeStorePaths(const Store & store, Sink & out, const StorePathSet & paths
|
|||
out << store.printStorePath(i);
|
||||
}
|
||||
|
||||
StorePath read(const Store & store, Source & from, Proxy<StorePath> _)
|
||||
{
|
||||
auto path = readString(from);
|
||||
return store.parseStorePath(path);
|
||||
}
|
||||
|
||||
StorePathCAMap readStorePathCAMap(const Store & store, Source & from)
|
||||
{
|
||||
|
@ -63,6 +57,13 @@ void writeStorePathCAMap(const Store & store, Sink & out, const StorePathCAMap &
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
StorePath read(const Store & store, Source & from, Proxy<StorePath> _)
|
||||
{
|
||||
auto path = readString(from);
|
||||
return store.parseStorePath(path);
|
||||
}
|
||||
|
||||
void write(const Store & store, Sink & out, const StorePath & storePath)
|
||||
{
|
||||
auto path = store.printStorePath(storePath);
|
||||
|
|
Loading…
Reference in a new issue