diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-06-17 07:36:16 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-06-17 07:36:16 +0200 |
commit | 7773996d7b103e4e057cd547c0666e5d5834416f (patch) | |
tree | 292b9dc3717c10b9435b14b04b0a590b8b524ac3 /src/api/cocoa | |
parent | 90b28c205219df732d83e403f98abab31e6e52d4 (diff) | |
parent | 39128dd7e11ffa05eb06933cb6e3ce0e750e8806 (diff) | |
download | glutin-7773996d7b103e4e057cd547c0666e5d5834416f.tar.gz glutin-7773996d7b103e4e057cd547c0666e5d5834416f.zip |
Merge pull request #488 from tomaka/rem-is-closed
Remove the is_closed function
Diffstat (limited to 'src/api/cocoa')
-rw-r--r-- | src/api/cocoa/mod.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index 5cb7edb..772b906 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -60,7 +60,6 @@ static mut win_pressed: bool = false; static mut alt_pressed: bool = false; struct DelegateState { - is_closed: bool, context: IdRef, view: IdRef, window: IdRef, @@ -84,8 +83,6 @@ impl WindowDelegate { unsafe { let state: *mut libc::c_void = *this.get_ivar("glutinState"); let state = state as *mut DelegateState; - (*state).is_closed = true; - (*state).pending_events.lock().unwrap().push_back(Closed); } YES @@ -382,7 +379,6 @@ impl Window { } let ds = DelegateState { - is_closed: false, context: context.clone(), view: view.clone(), window: window.clone(), @@ -604,10 +600,6 @@ impl Window { } } - pub fn is_closed(&self) -> bool { - self.delegate.state.is_closed - } - pub fn set_title(&self, title: &str) { unsafe { let title = IdRef::new(NSString::alloc(nil).init_str(title)); |