summaryrefslogtreecommitdiff
path: root/src/utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-05-25 13:51:17 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-05-25 13:51:17 +0100
commitb42de850314e7d76f873ddc7d64c5f7d2a30eb00 (patch)
tree8968f1fed86a5e8fc7df2796450d028a722a17d0 /src/utils.hh
parent41319d2708bb311b2bd0b82ec310ae985f9b5861 (diff)
Migrate code to c++14
Diffstat (limited to 'src/utils.hh')
-rw-r--r--src/utils.hh28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/utils.hh b/src/utils.hh
index ee2591c0..7a7eb071 100644
--- a/src/utils.hh
+++ b/src/utils.hh
@@ -8,34 +8,6 @@
namespace Kakoune
{
-template<typename T, typename... Args>
-std::unique_ptr<T> make_unique(Args&&... args)
-{
- return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
-}
-
-template<size_t... I>
-struct IndexSequence
-{
- using Next = IndexSequence<I..., sizeof...(I)>;
-};
-
-template<size_t N>
-struct MakeIndexSequence
-{
- using Type = typename MakeIndexSequence<N-1>::Type::Next;
-};
-
-template<>
-struct MakeIndexSequence<0>
-{
- using Type = IndexSequence<>;
-};
-
-template<size_t N>
-constexpr typename MakeIndexSequence<N>::Type
-make_index_sequence() { return typename MakeIndexSequence<N>::Type{}; }
-
// *** Singleton ***
//
// Singleton helper class, every singleton type T should inherit