forked from mirrors/gstreamer-rs
Simplify glib::IsImplementable
trait implementations
This commit is contained in:
parent
dd9e12822f
commit
0b544ffbd3
5 changed files with 2 additions and 15 deletions
|
@ -16,8 +16,6 @@ unsafe impl<T: PlayerVideoRendererImpl> IsImplementable<T> for PlayerVideoRender
|
|||
|
||||
iface.create_video_sink = Some(video_renderer_create_video_sink::<T>);
|
||||
}
|
||||
|
||||
fn instance_init(_instance: &mut glib::subclass::InitializingObject<T>) {}
|
||||
}
|
||||
|
||||
pub trait PlayerVideoRendererImplExt: ObjectSubclass {
|
||||
|
|
|
@ -124,8 +124,6 @@ unsafe impl<T: ChildProxyImpl> IsImplementable<T> for ChildProxy {
|
|||
iface.child_added = Some(child_proxy_child_added::<T>);
|
||||
iface.child_removed = Some(child_proxy_child_removed::<T>);
|
||||
}
|
||||
|
||||
fn instance_init(_instance: &mut glib::subclass::InitializingObject<T>) {}
|
||||
}
|
||||
|
||||
unsafe extern "C" fn child_proxy_get_child_by_name<T: ChildProxyImpl>(
|
||||
|
|
|
@ -6,8 +6,4 @@ use crate::Preset;
|
|||
|
||||
pub trait PresetImpl: super::element::ElementImpl {}
|
||||
|
||||
unsafe impl<T: PresetImpl> IsImplementable<T> for Preset {
|
||||
fn interface_init(_iface: &mut glib::Interface<Self>) {}
|
||||
|
||||
fn instance_init(_instance: &mut glib::subclass::InitializingObject<T>) {}
|
||||
}
|
||||
unsafe impl<T: PresetImpl> IsImplementable<T> for Preset {}
|
||||
|
|
|
@ -6,7 +6,4 @@ use crate::TagSetter;
|
|||
|
||||
pub trait TagSetterImpl: super::element::ElementImpl {}
|
||||
|
||||
unsafe impl<T: TagSetterImpl> IsImplementable<T> for TagSetter {
|
||||
fn interface_init(_iface: &mut glib::Interface<Self>) {}
|
||||
fn instance_init(_instance: &mut glib::subclass::InitializingObject<T>) {}
|
||||
}
|
||||
unsafe impl<T: TagSetterImpl> IsImplementable<T> for TagSetter {}
|
||||
|
|
|
@ -102,8 +102,6 @@ unsafe impl<T: URIHandlerImpl> IsImplementable<T> for URIHandler {
|
|||
iface.get_uri = Some(uri_handler_get_uri::<T>);
|
||||
iface.set_uri = Some(uri_handler_set_uri::<T>);
|
||||
}
|
||||
|
||||
fn instance_init(_instance: &mut glib::subclass::InitializingObject<T>) {}
|
||||
}
|
||||
|
||||
unsafe extern "C" fn uri_handler_get_type<T: URIHandlerImpl>(
|
||||
|
|
Loading…
Reference in a new issue