From a65a4fd15a3d9736cd9842b4fe3ea8c944188557 Mon Sep 17 00:00:00 2001 From: Steven Sheldon Date: Fri, 3 Apr 2015 02:30:29 -0700 Subject: Removed unstable clone_from method so OSX can compile. --- src/cocoa/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs index e756aba..ca9d888 100644 --- a/src/cocoa/mod.rs +++ b/src/cocoa/mod.rs @@ -719,15 +719,5 @@ impl Clone for IdRef { } 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; - } } -- cgit v1.2.3