From fd88c548092c0b00d9d4dd309ebfb0172a310228 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sun, 3 Nov 2024 20:08:00 +0100 Subject: [PATCH] remove leftover externs --- src/ui/setup.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/ui/setup.rs b/src/ui/setup.rs index be640c2..46ea2fb 100644 --- a/src/ui/setup.rs +++ b/src/ui/setup.rs @@ -186,23 +186,3 @@ impl Setup { self.imp().connected.signal() } } - -mod ffi { - use glib::subclass::basic::InstanceStruct; - use glib::translate::{from_glib_none, IntoGlibPtr}; - use glib::Object; - use gtk::glib; - - type AudreyUiSetup = InstanceStruct; - - #[no_mangle] - extern "C" fn audrey_ui_setup_new() -> *mut AudreyUiSetup { - unsafe { Object::new::().into_glib_ptr() } - } - - #[no_mangle] - extern "C" fn audrey_ui_setup_load(self_: *mut AudreyUiSetup) { - let self_: &super::Setup = unsafe { &from_glib_none(self_) }; - self_.load() - } -}