mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Cleanup: Remove singleton()
This commit is contained in:
parent
0d4a10e910
commit
6c75cf69c3
9 changed files with 23 additions and 35 deletions
|
@ -117,15 +117,6 @@ void createSymlink(const Path & target, const Path & link);
|
|||
void replaceSymlink(const Path & target, const Path & link);
|
||||
|
||||
|
||||
template<class T, class A>
|
||||
T singleton(const A & a)
|
||||
{
|
||||
T t;
|
||||
t.insert(a);
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
/* Wrappers arount read()/write() that read/write exactly the
|
||||
requested number of bytes. */
|
||||
void readFull(int fd, unsigned char * buf, size_t count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue