Skip to content

Commit b6c4b5a

Browse files
remove gguf_get_data from API
1 parent 793290f commit b6c4b5a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

ggml/include/gguf.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ extern "C" {
8787
GGML_API int gguf_get_version (const struct gguf_context * ctx);
8888
GGML_API size_t gguf_get_alignment (const struct gguf_context * ctx);
8989
GGML_API size_t gguf_get_data_offset(const struct gguf_context * ctx);
90-
GGML_API void * gguf_get_data (const struct gguf_context * ctx);
9190

9291
GGML_API int gguf_get_n_kv(const struct gguf_context * ctx);
9392
GGML_API int gguf_find_key(const struct gguf_context * ctx, const char * key);

ggml/src/gguf.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,6 @@ size_t gguf_get_data_offset(const struct gguf_context * ctx) {
731731
return ctx->offset;
732732
}
733733

734-
// TODO should this be a const pointer? should it exist at all?
735-
void * gguf_get_data(const struct gguf_context * ctx) {
736-
return ctx->data;
737-
}
738-
739734
// TODO this returns int but the underlying type is uint64
740735
int gguf_get_n_kv(const struct gguf_context * ctx) {
741736
return ctx->kv.size();

0 commit comments

Comments
 (0)