RESOLVED FIXED 221734
Remove unused WebKit::LocalStorageDatabaseTracker::deleteAllDatabases()
https://bugs.webkit.org/show_bug.cgi?id=221734
Summary Remove unused WebKit::LocalStorageDatabaseTracker::deleteAllDatabases()
David Kilzer (:ddkilzer)
Reported 2021-02-10 17:51:03 PST
WebCore::SQLiteFileSystem::deleteEmptyDatabaseDirectory() in Source/WebCore/platform/sql/SQLiteFileSystem.h needs to be marked as WEBCORE_EXPORT so that it can be used in WebKit::LocalStorageDatabaseTracker::deleteAllDatabases() from Source/WebKit/NetworkProcess/WebStorage/LocalStorageDatabaseTracker.cpp in WebKit.framework. This probably hasn't been found before since WebKit.framework has dead code stripping unconditionally enabled via Source/WebKit/Configurations/Base.xcconfig: // Dead code stripping needs to be on in the debug variant to avoid link errors. This is due to unconditionally // building the MiG bindings for WebKitPluginClient even when the functions that the bindings wrap are not built. DEAD_CODE_STRIPPING = YES; Most other WebKit projects disable dead code stripping in Debug builds like this: DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING[config=Debug] = NO; I guess this also means that LocalStorageDatabaseTracker::deleteAllDatabases() is dead code. Maybe we can just delete LocalStorageDatabaseTracker::deleteAllDatabases() instead?
Attachments
Patch v1 (3.15 KB, patch)
2021-02-11 10:58 PST, David Kilzer (:ddkilzer)
no flags
David Kilzer (:ddkilzer)
Comment 1 2021-02-10 18:40:56 PST
David Kilzer (:ddkilzer)
Comment 2 2021-02-11 10:58:39 PST
Created attachment 420004 [details] Patch v1
Alexey Proskuryakov
Comment 3 2021-02-11 11:46:28 PST
Comment on attachment 420004 [details] Patch v1 Best kind of patch.
EWS
Comment 4 2021-02-11 14:57:40 PST
Committed r272754: <https://commits.webkit.org/r272754> All reviewed patches have been landed. Closing bug and clearing flags on attachment 420004 [details].
Note You need to log in before you can comment on or make changes to this bug.