]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : remove unused ggml_context_container (ggml/1272)
authorDaniel Bevenius <redacted>
Fri, 13 Jun 2025 07:05:44 +0000 (09:05 +0200)
committerGeorgi Gerganov <redacted>
Wed, 18 Jun 2025 09:40:34 +0000 (12:40 +0300)
This commit removes the unused `ggml_context_container` structure from
the ggml library. It looks like the usage of this struct was removed in
Commit 4757fe18d56ec11bf9c07feaca6e9d5b5357e7f4 ("ggml : alloc
ggml_contexts on the heap (whisper/2525)").

The motivation for this changes is to improve code clarity/readability.

ggml/src/ggml.c

index 196b7b8f3e2ae6edaf3a88c44f11f7034bf51c44..a8edad3778aa9dab82903d913109ebeb51fc992d 100644 (file)
@@ -888,12 +888,6 @@ struct ggml_context {
     struct ggml_object * objects_end;
 };
 
-struct ggml_context_container {
-    bool used;
-
-    struct ggml_context context;
-};
-
 //
 // data types
 //