remove leftover externs

This commit is contained in:
Erica Z 2024-11-03 20:08:00 +01:00
parent e85e606ba9
commit fd88c54809

View file

@ -186,23 +186,3 @@ impl Setup {
self.imp().connected.signal() 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<super::imp::Setup>;
#[no_mangle]
extern "C" fn audrey_ui_setup_new() -> *mut AudreyUiSetup {
unsafe { Object::new::<super::Setup>().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()
}
}