From 3989b1da282fafd94bbbcecf918f61a3ee13f062 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Wed, 28 Dec 2022 17:11:34 -0600 Subject: [PATCH] chore(list): remove redundant void in function signatures --- storm/list/TSLink.hpp | 10 +++++----- storm/list/TSLinkedNode.hpp | 6 +++--- storm/list/TSList.hpp | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/storm/list/TSLink.hpp b/storm/list/TSLink.hpp index 46c8099..51c5bb5 100644 --- a/storm/list/TSLink.hpp +++ b/storm/list/TSLink.hpp @@ -13,12 +13,12 @@ class TSLink { // Member functions ~TSLink(); - bool IsLinked(void); - T* Next(void); + bool IsLinked(); + T* Next(); TSLink* NextLink(ptrdiff_t linkoffset); - T* Prev(void); - T* RawNext(void); - void Unlink(void); + T* Prev(); + T* RawNext(); + void Unlink(); }; template diff --git a/storm/list/TSLinkedNode.hpp b/storm/list/TSLinkedNode.hpp index 85dc776..6ce3c8c 100644 --- a/storm/list/TSLinkedNode.hpp +++ b/storm/list/TSLinkedNode.hpp @@ -11,9 +11,9 @@ class TSLinkedNode { // Member functions ~TSLinkedNode(); - T* Next(void); - T* Prev(void); - void Unlink(void); + T* Next(); + T* Prev(); + void Unlink(); }; template diff --git a/storm/list/TSList.hpp b/storm/list/TSList.hpp index 781c132..b5b2ac3 100644 --- a/storm/list/TSList.hpp +++ b/storm/list/TSList.hpp @@ -21,10 +21,10 @@ class TSList { TSList(); ~TSList(); void ChangeLinkOffset(ptrdiff_t linkoffset); - void DeleteAll(void); + void DeleteAll(); T* DeleteNode(T* ptr); - T* Head(void); - void InitializeTerminator(void); + T* Head(); + void InitializeTerminator(); bool IsLinked(T* ptr); TSLink* Link(const T* ptr); void LinkNode(T* ptr, uint32_t linktype, T* existingptr); @@ -36,8 +36,8 @@ class TSList { T* Next(const T* ptr); T* RawNext(const T* ptr); void SetLinkOffset(ptrdiff_t linkoffset); - T* Tail(void); - void UnlinkAll(void); + T* Tail(); + void UnlinkAll(); void UnlinkNode(T* node); };