From: Kevin Day Date: Mon, 28 Aug 2023 04:20:14 +0000 (-0500) Subject: Cleanup: Remove unused file that got overlooked when wrapping up the recent memory... X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=64c191ff1b591de903c76f75a934996a3518df0d;p=fll Cleanup: Remove unused file that got overlooked when wrapping up the recent memory logic re-design. --- diff --git a/level_0/f_string/c/string/private-quantitys.c b/level_0/f_string/c/string/private-quantitys.c deleted file mode 100644 index 1ccd0ff..0000000 --- a/level_0/f_string/c/string/private-quantitys.c +++ /dev/null @@ -1,29 +0,0 @@ -#include "../string.h" -#include "../private-string.h" -#include "private-quantitys.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#if !defined(_di_f_string_quantitys_append_all_) || !defined(_di_f_string_quantityss_append_) || !defined(_di_f_string_quantityss_append_all_) - f_status_t private_f_string_quantitys_append_all(const f_string_quantitys_t source, f_string_quantitys_t * const destination) { - - { - const f_status_t status = f_memory_array_increase_by(source.used, sizeof(f_string_quantity_t), (void **) &destination->array, &destination->used, &destination->size); - if (F_status_is_error(status)) return status; - } - - for (f_number_unsigned_t i = 0; i < source.used; ++i) { - - destination->array[destination->used].start = source.array[i].start; - destination->array[destination->used++].total = source.array[i].total; - } // for - - return F_okay; - } -#endif // !defined(_di_f_string_quantitys_append_all_) || !defined(_di_f_string_quantityss_append_) || !defined(_di_f_string_quantityss_append_all_) - -#ifdef __cplusplus -} // extern "C" -#endif diff --git a/level_0/f_string/c/string/private-quantitys.h b/level_0/f_string/c/string/private-quantitys.h deleted file mode 100644 index f6636c5..0000000 --- a/level_0/f_string/c/string/private-quantitys.h +++ /dev/null @@ -1,49 +0,0 @@ -/** - * FLL - Level 0 - * - * Project: String - * API Version: 0.7 - * Licenses: lgpl-2.1-or-later - * - * These are provided for internal reduction in redundant code. - * These should not be exposed/used outside of this project. - */ -#ifndef _PRIVATE_F_string_quantitys_h -#define _PRIVATE_F_string_quantitys_h - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Private implementation for appending. - * - * Intended to be shared to each of the different implementation variations. - * - * @param source - * The source quantitys to append. - * @param destination - * The destination quantitys the source is appended onto. - * - * @return - * F_okay on success. - * - * F_array_too_large (with error bit) if the combined array is too large. - * - * Errors (with error bit) from: f_memory_resize(). - * - * @see f_memory_resize() - * - * @see f_string_quantitys_append_all() - * @see f_string_quantityss_append() - * @see f_string_quantityss_append_all() - */ -#if !defined(_di_f_string_quantitys_append_all_) || !defined(_di_f_string_quantityss_append_) || !defined(_di_f_string_quantityss_append_all_) - extern f_status_t private_f_string_quantitys_append_all(const f_string_quantitys_t source, f_string_quantitys_t * const destination) F_attribute_visibility_internal_d; -#endif // !defined(_di_f_string_quantitys_append_all_) || !defined(_di_f_string_quantityss_append_) || !defined(_di_f_string_quantityss_append_all_) - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // _PRIVATE_F_string_quantitys_h