mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Removed unstable clone_from method so OSX can compile.
This commit is contained in:
parent
631cedb58c
commit
a65a4fd15a
|
@ -719,15 +719,5 @@ impl Clone for IdRef {
|
||||||
}
|
}
|
||||||
IdRef(self.0)
|
IdRef(self.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clone_from(&mut self, source: &IdRef) {
|
|
||||||
if source.0 != nil {
|
|
||||||
let _: id = unsafe { msg_send![source.0, retain] };
|
|
||||||
}
|
|
||||||
if self.0 != nil {
|
|
||||||
let _: () = unsafe { msg_send![self.0, release] };
|
|
||||||
}
|
|
||||||
self.0 = source.0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue