summaryrefslogtreecommitdiffstats
path: root/include/ingen/memory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ingen/memory.hpp')
-rw-r--r--include/ingen/memory.hpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/ingen/memory.hpp b/include/ingen/memory.hpp
index 82e98bdf..a1dba436 100644
--- a/include/ingen/memory.hpp
+++ b/include/ingen/memory.hpp
@@ -18,23 +18,14 @@
#define INGEN_MEMORY_HPP
#include <cstdlib>
-#include <memory>
-#include <utility>
namespace ingen {
template <class T>
-void NullDeleter(T* ptr) {}
+void NullDeleter(T* ptr) noexcept {}
template <class T>
-struct FreeDeleter { void operator()(T* const ptr) { free(ptr); } };
-
-template <typename T, typename... Args>
-std::unique_ptr<T>
-make_unique(Args&&... args)
-{
- return std::unique_ptr<T>{new T{std::forward<Args>(args)...}};
-}
+struct FreeDeleter { void operator()(T* const ptr) noexcept { free(ptr); } };
} // namespace ingen