Remove unnecesary call to status bar SPI.
[WebKit-https.git] / Source / WebCore / platform / ios / VideoFullscreenInterfaceAVKit.mm
index c582582a94cf64fd63129d567a2bdaa39804fd68..1bb85209ce678a0987906f4581d83ff477bc6a88 100644 (file)
@@ -763,22 +763,12 @@ void VideoFullscreenInterfaceAVKit::exitFullscreen(const WebCore::IntRect& final
     };
 }
 
-@interface UIApplication ()
-- (void)_setStatusBarOrientation:(UIInterfaceOrientation)o;
-@end
-
-@interface UIWindow ()
-- (UIInterfaceOrientation)interfaceOrientation;
-@end
-
 void VideoFullscreenInterfaceAVKit::cleanupFullscreen()
 {
     LOG(Fullscreen, "VideoFullscreenInterfaceAVKit::cleanupFullscreen(%p)", this);
     if (m_window) {
         [m_window setHidden:YES];
         [m_window setRootViewController:nil];
-        if (m_parentWindow)
-            [[getUIApplicationClass() sharedApplication] _setStatusBarOrientation:[m_parentWindow interfaceOrientation]];
     }
     
     [m_playerViewController setDelegate:nil];