diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-04 16:04:52 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-04 16:16:53 +0200 |
commit | 6c75cf69c34af676b6b39ff69fcb439e7a4bda6e (patch) | |
tree | c66abd02ca1a5b5b9dedcc8d2477696f7414af23 /src/libutil | |
parent | 0d4a10e910e1916a6f36cb9af6b68817172b51a9 (diff) |
Cleanup: Remove singleton()
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.hh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index f3f0f92a0..ab43637a5 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -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); |