Remove usage of glib_floating_reference_guard!()

It's not needed anymore.
This commit is contained in:
Sebastian Dröge 2019-12-07 23:04:35 +02:00
parent 486e0e3420
commit f638b0eef7
2 changed files with 0 additions and 21 deletions

View file

@ -633,7 +633,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -653,7 +652,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -677,7 +675,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -697,7 +694,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -721,7 +717,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -745,7 +740,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -769,7 +763,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -792,7 +785,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -811,7 +803,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -831,7 +822,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -856,7 +846,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -874,7 +863,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -898,7 +886,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -922,7 +909,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -943,7 +929,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -980,7 +965,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -1007,7 +991,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -1026,7 +1009,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);
@ -1050,7 +1032,6 @@ where
T: AggregatorImpl, T: AggregatorImpl,
T::Instance: PanicPoison, T::Instance: PanicPoison,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: Aggregator = from_glib_borrow(ptr); let wrap: Aggregator = from_glib_borrow(ptr);

View file

@ -118,7 +118,6 @@ unsafe extern "C" fn aggregator_pad_flush<T: ObjectSubclass>(
where where
T: AggregatorPadImpl, T: AggregatorPadImpl,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: AggregatorPad = from_glib_borrow(ptr); let wrap: AggregatorPad = from_glib_borrow(ptr);
@ -135,7 +134,6 @@ unsafe extern "C" fn aggregator_pad_skip_buffer<T: ObjectSubclass>(
where where
T: AggregatorPadImpl, T: AggregatorPadImpl,
{ {
glib_floating_reference_guard!(ptr);
let instance = &*(ptr as *mut T::Instance); let instance = &*(ptr as *mut T::Instance);
let imp = instance.get_impl(); let imp = instance.get_impl();
let wrap: AggregatorPad = from_glib_borrow(ptr); let wrap: AggregatorPad = from_glib_borrow(ptr);