REGRESSION(r214194): Safari leaves a popup window open opened during before unload
[WebKit-https.git] / Source / WebCore / loader / NavigationScheduler.h
index a2a0b94..0459318 100644 (file)
@@ -43,23 +43,6 @@ class ScheduledNavigation;
 class SecurityOrigin;
 class URL;
 
-class NavigationDisabler {
-public:
-    NavigationDisabler()
-    {
-        s_navigationDisableCount++;
-    }
-    ~NavigationDisabler()
-    {
-        ASSERT(s_navigationDisableCount);
-        s_navigationDisableCount--;
-    }
-    static bool isNavigationAllowed() { return !s_navigationDisableCount; }
-
-private:
-    static unsigned s_navigationDisableCount;
-};
-
 class NavigationScheduler {
 public:
     explicit NavigationScheduler(Frame&);