Skip to content

Commit 5a15d86

Browse files
committed
glib: Remove an unnecessary FromGlibContainerAsVec impl
1 parent 08e6f30 commit 5a15d86

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

glib/src/subclass/signal.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -354,30 +354,6 @@ impl IntoGlib for SignalType {
354354
}
355355
}
356356

357-
impl FromGlibContainerAsVec<Type, *const ffi::GType> for SignalType {
358-
unsafe fn from_glib_none_num_as_vec(ptr: *const ffi::GType, num: usize) -> Vec<Self> {
359-
if num == 0 || ptr.is_null() {
360-
return Vec::new();
361-
}
362-
363-
let mut res = Vec::with_capacity(num);
364-
for i in 0..num {
365-
res.push(from_glib(*ptr.add(i)));
366-
}
367-
res
368-
}
369-
370-
unsafe fn from_glib_container_num_as_vec(_: *const ffi::GType, _: usize) -> Vec<Self> {
371-
// Can't really free a *const
372-
unimplemented!();
373-
}
374-
375-
unsafe fn from_glib_full_num_as_vec(_: *const ffi::GType, _: usize) -> Vec<Self> {
376-
// Can't really free a *const
377-
unimplemented!();
378-
}
379-
}
380-
381357
#[allow(clippy::type_complexity)]
382358
enum SignalRegistration {
383359
Unregistered {

0 commit comments

Comments
 (0)