about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-04T14·04+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-05-04T14·16+0200
commit6c75cf69c34af676b6b39ff69fcb439e7a4bda6e (patch)
treec66abd02ca1a5b5b9dedcc8d2477696f7414af23 /src/libutil
parent0d4a10e910e1916a6f36cb9af6b68817172b51a9 (diff)
Cleanup: Remove singleton()
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.hh9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index f3f0f92a0aaa..ab43637a574c 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);