Remove obsolete comment

This commit is contained in:
Pierre Krieger 2016-10-31 17:29:12 +01:00
parent aace1c0373
commit 158543f336

View file

@ -342,6 +342,15 @@ impl Window {
}
}
impl Drop for Window {
#[inline]
fn drop(&mut self) {
unsafe {
user32::PostMessageW(self.window.0, winapi::WM_DESTROY, 0, 0);
}
}
}
pub struct PollEventsIterator<'a> {
window: &'a Window,
}
@ -367,14 +376,3 @@ impl<'a> Iterator for WaitEventsIterator<'a> {
self.window.events_receiver.recv().ok()
}
}
impl Drop for Window {
#[inline]
fn drop(&mut self) {
unsafe {
// we don't call MakeCurrent(0, 0) because we are not sure that the context
// is still the current one
user32::PostMessageW(self.window.0, winapi::WM_DESTROY, 0, 0);
}
}
}