@@ -1888,22 +1888,6 @@ static VALUE rb_llama_get_kv_self(VALUE self, VALUE ctx) {
1888
1888
return TypedData_Wrap_Struct (rb_cLlamaKvCache , & llama_kv_cache_wrapper_data_type , kv_cache_wrapper );
1889
1889
}
1890
1890
1891
- /**
1892
- * @overload llama_kv_self_used_cells(context)
1893
- * @param [LlamaContext] context
1894
- * @return [Integer]
1895
- */
1896
- static VALUE rb_llama_kv_self_used_cells (VALUE self , VALUE ctx ) {
1897
- if (!rb_obj_is_kind_of (ctx , rb_cLlamaContext )) {
1898
- rb_raise (rb_eArgError , "ctx must be a LlamaContext" );
1899
- return Qnil ;
1900
- }
1901
- llama_context_wrapper * context_wrapper = get_llama_context_wrapper (ctx );
1902
- const int32_t n_used_kv_cells = llama_kv_self_used_cells (context_wrapper -> context );
1903
- RB_GC_GUARD (ctx );
1904
- return INT2NUM (n_used_kv_cells );
1905
- }
1906
-
1907
1891
/**
1908
1892
* @overload llama_kv_self_clear(context)
1909
1893
* @param [LlamaContext] context
@@ -4776,9 +4760,6 @@ void Init_llama_cpp(void) {
4776
4760
rb_cLlamaKvCache = rb_define_class_under (rb_mLlamaCpp , "LlamaKvCache" , rb_cObject );
4777
4761
rb_define_alloc_func (rb_cLlamaKvCache , llama_kv_cache_wrapper_alloc );
4778
4762
4779
- /* llama_kv_self_used_cells */
4780
- rb_define_module_function (rb_mLlamaCpp , "llama_kv_self_used_cells" , rb_llama_kv_self_used_cells , 1 );
4781
-
4782
4763
/* llama_kv_self_clear */
4783
4764
rb_define_module_function (rb_mLlamaCpp , "llama_kv_self_clear" , rb_llama_kv_self_clear , 1 );
4784
4765
0 commit comments