Bug 1315185 - Get rid of FileSystemFileEntry.createWriter, r=smaug

This commit is contained in:
Andrea Marchesini 2016-11-04 14:23:46 +01:00
Родитель a7a38b8a5f
Коммит 6674864b91
4 изменённых файлов: 0 добавлений и 27 удалений

Просмотреть файл

@ -90,14 +90,6 @@ FileSystemFileEntry::GetFullPath(nsAString& aPath, ErrorResult& aRv) const
}
}
void
FileSystemFileEntry::CreateWriter(VoidCallback& aSuccessCallback,
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const
{
ErrorCallbackHelper::Call(GetParentObject(), aErrorCallback,
NS_ERROR_DOM_SECURITY_ERR);
}
void
FileSystemFileEntry::GetFile(FileCallback& aSuccessCallback,
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const

Просмотреть файл

@ -41,10 +41,6 @@ public:
virtual void
GetFullPath(nsAString& aFullPath, ErrorResult& aRv) const override;
void
CreateWriter(VoidCallback& aSuccessCallback,
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const;
void
GetFile(FileCallback& aSuccessCallback,
const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback) const;

Просмотреть файл

@ -71,15 +71,6 @@ function test_fileEntry_file() {
});
}
function test_fileEntry_createWriter() {
fileEntry.createWriter(function(file) {
ok(false, "Something when wrong!");
}, function() {
ok(true, "We don't support createWrite");
next();
});
}
function test_fileEntry_getParent() {
fileEntry.getParent(function(entry) {
is(fileEntry.fullPath, entry.fullPath, "Top level FileEntry should return itself as parent.");
@ -425,7 +416,6 @@ var tests = [
test_fileEntry,
test_fileEntry_file,
test_fileEntry_createWriter,
test_fileEntry_getParent,
test_directoryEntry,

Просмотреть файл

@ -9,11 +9,6 @@ callback interface FileCallback {
};
interface FileSystemFileEntry : FileSystemEntry {
// the successCallback should be a FileWriteCallback but this method is not
// implemented. ErrorCallback will be called with SecurityError.
void createWriter (VoidCallback successCallback,
optional ErrorCallback errorCallback);
[BinaryName="GetFile"]
void file (FileCallback successCallback,
optional ErrorCallback errorCallback);