From d1e3de7c8a51ea3882dae3ea3a1f5c9ba26acb24 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 3 Jan 2024 21:04:45 +0100 Subject: [PATCH] Remove some obsolete C++ FFI calls --- fish-rust/src/common.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/fish-rust/src/common.rs b/fish-rust/src/common.rs index f75b43050..347dc7e4b 100644 --- a/fish-rust/src/common.rs +++ b/fish-rust/src/common.rs @@ -1454,15 +1454,6 @@ pub fn fish_setlocale() { ); } PROFILING_ACTIVE.store(true); - - // Until no C++ code uses the variables init in the C++ version of fish_setlocale(), we need to - // also call that one or otherwise we'll segfault trying to read those uninit values. - extern "C" { - fn fish_setlocale_ffi(); - } - unsafe { - fish_setlocale_ffi(); - } } /// Test if the character can be encoded using the current locale.