Index: third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp |
diff --git a/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp b/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp |
index 4a5f2686031ff935a67b58df45cf7058e3801497..094898ea4b7f41b93682400142578ba2540849c6 100644 |
--- a/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp |
+++ b/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp |
@@ -105,24 +105,6 @@ void LocalFileSystem::requestFileSystem( |
wrapPersistent(wrapper))); |
} |
-void LocalFileSystem::deleteFileSystem( |
- ExecutionContext* context, |
- FileSystemType type, |
- std::unique_ptr<AsyncFileSystemCallbacks> callbacks) { |
- ASSERT(context); |
- SECURITY_DCHECK(context->isDocument()); |
- |
- CallbackWrapper* wrapper = new CallbackWrapper(std::move(callbacks)); |
- requestFileSystemAccessInternal( |
- context, |
- WTF::bind(&LocalFileSystem::deleteFileSystemInternal, |
- wrapCrossThreadPersistent(this), wrapPersistent(context), type, |
- wrapPersistent(wrapper)), |
- WTF::bind(&LocalFileSystem::fileSystemNotAllowedInternal, |
- wrapCrossThreadPersistent(this), wrapPersistent(context), |
- wrapPersistent(wrapper))); |
-} |
- |
WebFileSystem* LocalFileSystem::getFileSystem() const { |
Platform* platform = Platform::current(); |
if (!platform) |
@@ -194,21 +176,6 @@ void LocalFileSystem::resolveURLInternal(ExecutionContext* context, |
fileSystem->resolveURL(fileSystemURL, callbacks->release()); |
} |
-void LocalFileSystem::deleteFileSystemInternal(ExecutionContext* context, |
- FileSystemType type, |
- CallbackWrapper* callbacks) { |
- WebFileSystem* fileSystem = getFileSystem(); |
- if (!fileSystem) { |
- fileSystemNotAvailable(context, callbacks); |
- return; |
- } |
- KURL storagePartition = |
- KURL(KURL(), context->getSecurityOrigin()->toString()); |
- fileSystem->deleteFileSystem(storagePartition, |
- static_cast<WebFileSystemType>(type), |
- callbacks->release()); |
-} |
- |
LocalFileSystem::LocalFileSystem(LocalFrame& frame, |
std::unique_ptr<FileSystemClient> client) |
: Supplement<LocalFrame>(frame), m_client(std::move(client)) {} |