Remove the is_closed function

This commit is contained in:
Pierre Krieger 2015-06-16 13:48:08 +02:00
parent eb73c2514e
commit 39128dd7e1
17 changed files with 72 additions and 176 deletions

View file

@ -59,7 +59,6 @@ static mut win_pressed: bool = false;
static mut alt_pressed: bool = false;
struct DelegateState {
is_closed: bool,
context: IdRef,
view: IdRef,
window: IdRef,
@ -83,8 +82,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
@ -366,7 +363,6 @@ impl Window {
}
let ds = DelegateState {
is_closed: false,
context: context.clone(),
view: view.clone(),
window: window.clone(),
@ -588,10 +584,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));