Remove LegacyIDB.
[WebKit-https.git] / Source / WebCore / Modules / indexeddb / DOMWindowIndexedDatabase.cpp
index 50fa440..f5bc6a8 100644 (file)
@@ -32,7 +32,6 @@
 #include "DatabaseProvider.h"
 #include "Document.h"
 #include "IDBFactoryImpl.h"
-#include "LegacyFactory.h"
 #include "Page.h"
 #include "SecurityOrigin.h"
 
@@ -112,12 +111,8 @@ IDBFactory* DOMWindowIndexedDatabase::indexedDB()
     if (!m_window->isCurrentlyDisplayedInFrame())
         return nullptr;
 
-    if (!m_idbFactory) {
-        if (page->databaseProvider().supportsModernIDB())
-            m_idbFactory = IDBClient::IDBFactory::create(page->idbConnection());
-        else
-            m_idbFactory = LegacyFactory::create(page->databaseProvider().idbFactoryBackend());
-    }
+    if (!m_idbFactory)
+        m_idbFactory = IDBClient::IDBFactory::create(page->idbConnection());
 
     return m_idbFactory.get();
 }