Remove ggml_backend_metal_log_set_callback. Removed in
cf977670e6 while unified backend logging mechanism
This commit is contained in:
parent
2b550ba9ac
commit
21f236d1da
3 changed files with 0 additions and 18 deletions
|
|
@ -83,10 +83,6 @@ pub unsafe fn set_log_callback(
|
|||
) {
|
||||
unsafe {
|
||||
whisper_rs_sys::whisper_log_set(log_callback, user_data);
|
||||
#[cfg(feature = "metal")]
|
||||
{
|
||||
whisper_rs_sys::ggml_backend_metal_log_set_callback(log_callback, user_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,12 +38,5 @@ unsafe extern "C" fn whisper_cpp_log_trampoline(
|
|||
pub fn install_whisper_log_trampoline() {
|
||||
crate::LOG_TRAMPOLINE_INSTALL.call_once(|| unsafe {
|
||||
whisper_rs_sys::whisper_log_set(Some(whisper_cpp_log_trampoline), std::ptr::null_mut());
|
||||
#[cfg(feature = "metal")]
|
||||
{
|
||||
whisper_rs_sys::ggml_backend_metal_log_set_callback(
|
||||
Some(whisper_cpp_log_trampoline),
|
||||
std::ptr::null_mut(),
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,12 +38,5 @@ unsafe extern "C" fn whisper_cpp_tracing_trampoline(
|
|||
pub fn install_whisper_tracing_trampoline() {
|
||||
crate::LOG_TRAMPOLINE_INSTALL.call_once(|| unsafe {
|
||||
whisper_rs_sys::whisper_log_set(Some(whisper_cpp_tracing_trampoline), std::ptr::null_mut());
|
||||
#[cfg(feature = "metal")]
|
||||
{
|
||||
whisper_rs_sys::ggml_backend_metal_log_set_callback(
|
||||
Some(whisper_cpp_tracing_trampoline),
|
||||
std::ptr::null_mut(),
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue