Index: chrome/browser/chromeos/drive/file_system_util.cc |
diff --git a/chrome/browser/chromeos/drive/file_system_util.cc b/chrome/browser/chromeos/drive/file_system_util.cc |
index 5cba03ba7c2dfce64029474087a2b2f2f624ab91..3946c0c7657b361f6e5f1df02e71d8f9f2473871 100644 |
--- a/chrome/browser/chromeos/drive/file_system_util.cc |
+++ b/chrome/browser/chromeos/drive/file_system_util.cc |
@@ -104,15 +104,6 @@ DriveIntegrationService* GetIntegrationServiceByProfile(Profile* profile) { |
return service; |
} |
-void CheckDirectoryExistsAfterGetResourceEntry( |
- const FileOperationCallback& callback, |
- FileError error, |
- scoped_ptr<ResourceEntry> entry) { |
- if (error == FILE_ERROR_OK && !entry->file_info().is_directory()) |
- error = FILE_ERROR_NOT_A_DIRECTORY; |
- callback.Run(error); |
-} |
- |
} // namespace |
const base::FilePath& GetDriveGrandRootPath() { |
@@ -348,20 +339,6 @@ void EnsureDirectoryExists(Profile* profile, |
} |
} |
-void CheckDirectoryExists(Profile* profile, |
- const base::FilePath& directory, |
- const FileOperationCallback& callback) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- DCHECK(!callback.is_null()); |
- |
- FileSystemInterface* file_system = GetFileSystemByProfile(profile); |
- DCHECK(file_system); |
- |
- file_system->GetResourceEntry( |
- ExtractDrivePath(directory), |
- base::Bind(&CheckDirectoryExistsAfterGetResourceEntry, callback)); |
-} |
- |
void EmptyFileOperationCallback(FileError error) { |
} |