From 6c75cf69c34af676b6b39ff69fcb439e7a4bda6e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 May 2016 16:04:52 +0200 Subject: Cleanup: Remove singleton() --- src/libutil/util.hh | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/libutil') 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 -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); -- cgit v1.2.3