From 2b9d0a99cbf7649c20492bc539e2823a2d2e57c5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 16 Jan 2017 22:24:29 +0100 Subject: AutoDeleteArray -> std::unique_ptr Also, switch to C++14 for std::make_unique. --- src/libutil/util.hh | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 50b96f7ed..d42099781 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -139,18 +139,6 @@ string drainFD(int fd); /* Automatic cleanup of resources. */ -template -struct AutoDeleteArray -{ - T * p; - AutoDeleteArray(T * p) : p(p) { } - ~AutoDeleteArray() - { - delete [] p; - } -}; - - class AutoDelete { Path path; -- cgit v1.2.3