From 184420786292ea5bb1a8b1c12c9ac70ddc2e121f Mon Sep 17 00:00:00 2001 From: KerfuffleV2 Date: Thu, 16 Nov 2023 19:32:18 -0700 Subject: [PATCH] Nuke obsolete GetArrayLen struct --- llama.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/llama.cpp b/llama.cpp index 742b8b86b..626905426 100644 --- a/llama.cpp +++ b/llama.cpp @@ -1708,15 +1708,6 @@ namespace GGUFMeta { template<> struct GKV_Base: GKV_Base_Type {}; template<> struct GKV_Base: GKV_Base_Type {}; - struct GetArrayLen{int value;}; - template<> struct GKV_Base { - public: - static constexpr gguf_type gt = GGUF_TYPE_ARRAY; - static GetArrayLen getter(const gguf_context *ctx, const int k) { - return GetArrayLen{gguf_get_arr_n(ctx, k)}; - } - }; - struct ArrayInfo{ const gguf_type gt; const size_t length;