Bug 1237588 - One of the File::Create methods is not used, r=smaug

This commit is contained in:
Andrea Marchesini 2016-01-07 13:34:53 +00:00
parent f32e96d899
commit b11daccf30
2 changed files with 0 additions and 13 deletions

View File

@ -428,15 +428,6 @@ File::Create(nsISupports* aParent, const nsAString& aName,
return file.forget();
}
/* static */ already_AddRefed<File>
File::Create(nsISupports* aParent, const nsAString& aName,
const nsAString& aContentType, uint64_t aLength)
{
RefPtr<File> file = new File(aParent,
new BlobImplBase(aName, aContentType, aLength));
return file.forget();
}
/* static */ already_AddRefed<File>
File::CreateMemoryFile(nsISupports* aParent, void* aMemoryBuffer,
uint64_t aLength, const nsAString& aName,

View File

@ -195,10 +195,6 @@ public:
const nsAString& aContentType, uint64_t aLength,
int64_t aLastModifiedDate, BlobDirState aDirState);
static already_AddRefed<File>
Create(nsISupports* aParent, const nsAString& aName,
const nsAString& aContentType, uint64_t aLength);
// The returned File takes ownership of aMemoryBuffer. aMemoryBuffer will be
// freed by free so it must be allocated by malloc or something
// compatible with it.