From 827723e7251fb503739cd94c0699240518aeb881 Mon Sep 17 00:00:00 2001 From: Mineplay Date: Mon, 19 May 2025 03:56:43 -0500 Subject: [PATCH] refactor(data structures): removed unused includes --- Include/Fledasty/Core/DoublyLinkedList.h | 2 +- Src/Core/DynamicArray.c | 1 - Src/Core/LinkedList.c | 3 +-- Src/Core/Queue.c | 1 - Src/Core/Stack.c | 1 - Src/Strings/UTF8String.c | 1 - 6 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Include/Fledasty/Core/DoublyLinkedList.h b/Include/Fledasty/Core/DoublyLinkedList.h index f5ac708..5cdb667 100644 --- a/Include/Fledasty/Core/DoublyLinkedList.h +++ b/Include/Fledasty/Core/DoublyLinkedList.h @@ -57,4 +57,4 @@ FledastyError fledasty_doubly_linked_list_clear(FledastyDoublyLinkedList *curren bool fledasty_doubly_linked_list_has_value(const FledastyDoublyLinkedList *current_doubly_linked_list, void *value); static inline bool fledasty_doubly_linked_list_is_empty(const FledastyDoublyLinkedList *current_doubly_linked_list) { return current_doubly_linked_list == NULL || current_doubly_linked_list->size == 0; } -#endif \ No newline at end of file +#endif diff --git a/Src/Core/DynamicArray.c b/Src/Core/DynamicArray.c index e7e6f7c..462496d 100644 --- a/Src/Core/DynamicArray.c +++ b/Src/Core/DynamicArray.c @@ -22,7 +22,6 @@ * ----------------------------------------------------------------------------- */ #include "../../Include/Fledasty/Core/DynamicArray.h" -#include "Fledasty/Utils/Error.h" #include #include diff --git a/Src/Core/LinkedList.c b/Src/Core/LinkedList.c index b24c426..42919e7 100644 --- a/Src/Core/LinkedList.c +++ b/Src/Core/LinkedList.c @@ -22,7 +22,6 @@ * ----------------------------------------------------------------------------- */ #include "../../Include/Fledasty/Core/LinkedList.h" -#include "Fledasty/Utils/Error.h" #include #include @@ -68,7 +67,7 @@ FledastyError fledasty_linked_list_initialize(FledastyLinkedList *new_linked_lis hallocy_free(previous_node->value); hallocy_free(previous_node); } - + return FLEDASTY_ERROR_FAILED_ALLOCATION; } diff --git a/Src/Core/Queue.c b/Src/Core/Queue.c index 6b28ffd..d3d05d7 100644 --- a/Src/Core/Queue.c +++ b/Src/Core/Queue.c @@ -21,7 +21,6 @@ * ----------------------------------------------------------------------------- */ #include "../../Include/Fledasty/Core/Queue.h" -#include "Fledasty/Utils/Error.h" #include #include diff --git a/Src/Core/Stack.c b/Src/Core/Stack.c index 30e2058..cde42a2 100644 --- a/Src/Core/Stack.c +++ b/Src/Core/Stack.c @@ -21,7 +21,6 @@ * ----------------------------------------------------------------------------- */ #include "../../Include/Fledasty/Core/Stack.h" -#include "Fledasty/Utils/Error.h" #include #include diff --git a/Src/Strings/UTF8String.c b/Src/Strings/UTF8String.c index 31697ce..3d18f49 100644 --- a/Src/Strings/UTF8String.c +++ b/Src/Strings/UTF8String.c @@ -24,7 +24,6 @@ * ----------------------------------------------------------------------------- */ #include "../../Include/Fledasty/Strings/UTF8String.h" -#include "Fledasty/Utils/Error.h" #include #include