Index: webkit/database/vfs_backend.cc |
diff --git a/webkit/database/vfs_backend.cc b/webkit/database/vfs_backend.cc |
index e734a7e5701575472cda6a11bbb39922fb1346ed..846f0c32a441539b5cbfeec0c331f34ad0124ee5 100644 |
--- a/webkit/database/vfs_backend.cc |
+++ b/webkit/database/vfs_backend.cc |
@@ -14,30 +14,6 @@ namespace webkit_database { |
static const int kFileTypeMask = 0x00007F00; |
// static |
-void VfsBackend::GetFileHandleForProcess(base::ProcessHandle process_handle, |
- const base::PlatformFile& file_handle, |
- base::PlatformFile* target_handle, |
- bool close_source_handle) { |
- if (file_handle == base::kInvalidPlatformFileValue) { |
- *target_handle = base::kInvalidPlatformFileValue; |
- return; |
- } |
- |
-#if defined(OS_WIN) |
- // Duplicate the file handle. |
- if (!DuplicateHandle(GetCurrentProcess(), file_handle, |
- process_handle, target_handle, 0, false, |
- DUPLICATE_SAME_ACCESS | |
- (close_source_handle ? DUPLICATE_CLOSE_SOURCE : 0))) { |
- // file_handle is closed whether or not DuplicateHandle succeeds. |
- *target_handle = INVALID_HANDLE_VALUE; |
- } |
-#elif defined(OS_POSIX) |
- *target_handle = file_handle; |
-#endif |
-} |
- |
-// static |
bool VfsBackend::FileTypeIsMainDB(int desired_flags) { |
return (desired_flags & kFileTypeMask) == SQLITE_OPEN_MAIN_DB; |
} |