File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ impl GlContext {
9191
9292 view. setWantsBestResolutionOpenGLSurface_ ( YES ) ;
9393
94- let ( ) = msg_send ! [ view, retain] ;
9594 NSOpenGLView :: display_ ( view) ;
9695 parent_view. addSubview_ ( view) ;
9796
Original file line number Diff line number Diff line change @@ -86,15 +86,6 @@ impl WindowInner {
8686 msg_send ! [ class!( NSNotificationCenter ) , defaultCenter] ;
8787 let ( ) = msg_send ! [ notification_center, removeObserver: self . ns_view] ;
8888
89- // Ensure all subviews are detached and released
90- let subviews: id = msg_send ! [ self . ns_view, subviews] ;
91- let count: usize = msg_send ! [ subviews, count] ;
92- for i in 0 ..count {
93- let subview: id = msg_send ! [ subviews, objectAtIndex: i] ;
94- subview. removeFromSuperview ( ) ;
95- let ( ) = msg_send ! [ subview, release] ;
96- }
97-
9889 drop ( window_state) ;
9990
10091 // Close the window if in non-parented mode
You can’t perform that action at this time.
0 commit comments