From 1c863b748b03a1ae420dbccb95fbeeed938ffa48 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 10 Nov 2023 10:28:28 +0900 Subject: [PATCH] Remove unused config function --- src/main.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index 98cbffd41..82bafd69d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4643,16 +4643,6 @@ unsafe extern "C" fn cinnabar_main(_argc: c_int, argv: *const *const c_char) -> } } -#[no_mangle] -unsafe extern "C" fn config(name: *const c_char, result: *mut strbuf) -> c_int { - if let Some(res) = get_config(CStr::from_ptr(name).to_str().unwrap()) { - result.as_mut().unwrap().extend_from_slice(res.as_bytes()); - 0 - } else { - 1 - } -} - pub fn get_config(name: &str) -> Option { get_config_remote(name, None) }