From 1c6d2ff21c13ff69f984d7a9f9defd255aeee934 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Fri, 21 May 2021 17:08:04 -0600 Subject: [PATCH] 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. --- AK/IntrusiveList.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/AK/IntrusiveList.h b/AK/IntrusiveList.h index 43b1ca72ba5..fe37e4a6696 100644 --- a/AK/IntrusiveList.h +++ b/AK/IntrusiveList.h @@ -46,7 +46,7 @@ private: template T::*member> class IntrusiveList { public: - IntrusiveList(); + IntrusiveList() = default; ~IntrusiveList(); void clear(); @@ -165,11 +165,6 @@ inline typename IntrusiveList::Iterator& IntrusiveList T::*member> -inline IntrusiveList::IntrusiveList() -{ -} - template T::*member> inline IntrusiveList::~IntrusiveList() {