summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2021-05-21 17:08:04 -0600
committerLinus Groh <mail@linusgroh.de>2021-05-22 10:11:14 +0100
commit1c6d2ff21c13ff69f984d7a9f9defd255aeee934 (patch)
tree2f37a2bb279ce2c351a296b173e12214aab110fc /AK
parent1965d60aebf3ee9cc4631b277eaf37bc8edd92f2 (diff)
downloadserenity-1c6d2ff21c13ff69f984d7a9f9defd255aeee934.zip
IntrusiveList: Remove redundant constructor
Problem: - The constructor is defined to be the default constructor. Solution: - Let the compiler generate the destructor by setting it to the default.
Diffstat (limited to 'AK')
-rw-r--r--AK/IntrusiveList.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/AK/IntrusiveList.h b/AK/IntrusiveList.h
index 43b1ca72ba..fe37e4a669 100644
--- a/AK/IntrusiveList.h
+++ b/AK/IntrusiveList.h
@@ -46,7 +46,7 @@ private:
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
class IntrusiveList {
public:
- IntrusiveList();
+ IntrusiveList() = default;
~IntrusiveList();
void clear();
@@ -166,11 +166,6 @@ inline typename IntrusiveList<T, Container, member>::Iterator& IntrusiveList<T,
}
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
-inline IntrusiveList<T, Container, member>::IntrusiveList()
-{
-}
-
-template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
inline IntrusiveList<T, Container, member>::~IntrusiveList()
{
clear();