summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar MerryMage2016-04-05 13:29:55 +0100
committerGravatar MerryMage2016-04-05 13:31:17 +0100
commita06dcfeb61d6769c562d6d50cfa3c0024176ae82 (patch)
treee1f81e5faebce62810ac079b8a6e616182c34959 /src/common
parentMerge pull request #1302 from Subv/save_fix (diff)
downloadyuzu-a06dcfeb61d6769c562d6d50cfa3c0024176ae82.tar.gz
yuzu-a06dcfeb61d6769c562d6d50cfa3c0024176ae82.tar.xz
yuzu-a06dcfeb61d6769c562d6d50cfa3c0024176ae82.zip
Common: Remove Common::make_unique, use std::make_unique
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt1
-rw-r--r--src/common/make_unique.h17
2 files changed, 0 insertions, 18 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 1c9be718f..c839ce173 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -42,7 +42,6 @@ set(HEADERS
42 logging/filter.h 42 logging/filter.h
43 logging/log.h 43 logging/log.h
44 logging/backend.h 44 logging/backend.h
45 make_unique.h
46 math_util.h 45 math_util.h
47 memory_util.h 46 memory_util.h
48 microprofile.h 47 microprofile.h
diff --git a/src/common/make_unique.h b/src/common/make_unique.h
deleted file mode 100644
index f6e7f017c..000000000
--- a/src/common/make_unique.h
+++ /dev/null
@@ -1,17 +0,0 @@
1// Copyright 2014 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include <algorithm>
8#include <memory>
9
10namespace Common {
11
12template <typename T, typename... Args>
13std::unique_ptr<T> make_unique(Args&&... args) {
14 return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
15}
16
17} // namespace