diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-01-16T21·24+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-01-16T21·24+0100 |
commit | 2b9d0a99cbf7649c20492bc539e2823a2d2e57c5 (patch) | |
tree | bdf06b8448c4f8b619383bda5284e7b4ee1219d6 /src/libutil/util.hh | |
parent | 40dfac968a87c1d90b5b3c9e3ffe72a370165047 (diff) |
AutoDeleteArray -> std::unique_ptr
Also, switch to C++14 for std::make_unique.
Diffstat (limited to '')
-rw-r--r-- | src/libutil/util.hh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 50b96f7ed92c..d420997815f5 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -139,18 +139,6 @@ string drainFD(int fd); /* Automatic cleanup of resources. */ -template <class T> -struct AutoDeleteArray -{ - T * p; - AutoDeleteArray(T * p) : p(p) { } - ~AutoDeleteArray() - { - delete [] p; - } -}; - - class AutoDelete { Path path; |