aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cocoa/mod.rs')
-rw-r--r--src/cocoa/mod.rs14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs
index c26510c..ca9d888 100644
--- a/src/cocoa/mod.rs
+++ b/src/cocoa/mod.rs
@@ -13,7 +13,9 @@ use native_monitor::NativeMonitorId;
use objc::runtime::{Class, Object, Sel, BOOL, YES, NO};
use objc::declare::ClassDecl;
-use cocoa::base::{id, nil, NSUInteger};
+use cocoa::base::{id, nil};
+use cocoa::foundation::{NSAutoreleasePool, NSDate, NSDefaultRunLoopMode, NSPoint, NSRect, NSSize,
+ NSString, NSUInteger};
use cocoa::appkit;
use cocoa::appkit::*;
use cocoa::appkit::NSEventSubtype::*;
@@ -717,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;
- }
}